This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252108 - SyntaxError: 'with' will become a reserved keyword in Python 2.6
Summary: SyntaxError: 'with' will become a reserved keyword in Python 2.6
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Lou Dasaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-27 10:31 UTC by Jenselme
Modified: 2015-05-25 20:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jenselme 2015-04-27 10:31:14 UTC
When I open a python file containing the 'with' keyword, I get the following error message:
File "/tmp/vcs-1430129729590/vcs-1430129729590/setup.py", line 7
SyntaxError: 'with' will become a reserved keyword in Python 2.6

I think the 'with' keyword should be supported and not print an error.
Comment 1 Lou Dasaro 2015-04-27 17:18:18 UTC
Reporter: Thank you for your report. When reporting an issue, please include the first four lines from Help->About as well as the version of Python/Jython in use, e.g.

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 1
Java: 1.7.0_75; Java HotSpot(TM) Client VM 24.75-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_75-b13
Jython 2.7b4
Comment 2 Jenselme 2015-05-25 18:49:48 UTC
Just retested with the last development version of netbeans:
Product Version: NetBeans IDE Dev (Build 201505240001)
Java: 1.7.0_79; OpenJDK 64-Bit Server VM 24.79-b02
Runtime: OpenJDK Runtime Environment 1.7.0_79-b14
System: Linux version 3.16.7-21-desktop running on amd64; UTF-8; fr_FR (nb)

I don't have this error. I suppose this was solved when updating to jython 2.7.0.

Marking as solved.
Comment 3 Lou Dasaro 2015-05-25 20:21:58 UTC
I concur. Verified.