Changes by Ned Deily n...@acm.org:
--
resolution: - out of date
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4613
___
Mark Lawrence added the comment:
As issue 4617 has been closed as resolved is there anything left to do here?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4613
___
Albert Hopkins added the comment:
You can close this one out. I don't even remember the use case anymore.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4613
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4613
___
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
I think I understand. This simple code does not compile with python 3.0:
def f():
e = None
def g():
e
try:
pass
except Exception as e:
pass # SyntaxError here???
The reason is that since 3.0, a
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
I filed issue4617 about the hidden del e problem.
Meanwhile, you may try to change some variable names, specially the
exception target (the 'e' in 'except Exception as e')
--
assignee: - amaury.forgeotdarc
priority: critical -
New submission from Albert Hopkins [EMAIL PROTECTED]:
Say I have module foo.py:
def a(x):
def b():
x
del x
If I run foo.py under Python 2.4.4 I get:
File foo.py, line 4
del x
SyntaxError: can not delete
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Somehow you caught the only SyntaxError that forgets to add filename and
line information.
Patch attached, at the expense of not displaying the variable name (it
should be obvious if the line is displayed)
--
keywords: +needs
Benjamin Peterson [EMAIL PROTECTED] added the comment:
+1 compiler_error should be used anyway.
--
keywords: -needs review
nosy: +benjamin.peterson
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4613
Albert Hopkins [EMAIL PROTECTED] added the comment:
Thanks for looking into this.
Ok... I applied your patch (actually it does not apply against Python
3.0 so I had to change it manually).
Now I'm not sure if this is still an error in the compiler or if it's
truly a problem on my end, but the
10 matches
Mail list logo