[issue2269] Problem reporting non-keyword arg after keyword arg syntax error
Isaac Morland
report at bugs.python.org
Mon Mar 10 21:29:39 CET 2008
New submission from Isaac Morland <ijmorlan at uwaterloo.ca>:
$ cat bug_fine.py
if True:
max (a='a', 'b')
#elif True:
# pass
else:
pass
$ python bug_fine.py
File "bug_fine.py", line 2
max (a='a', 'b')
SyntaxError: non-keyword arg after keyword arg
$ cat bug_show.py
if True:
max (a='a', 'b')
elif True:
pass
else:
pass
$ python bug_show.py
Exception exceptions.SyntaxError: ('non-keyword arg after keyword arg',
2) in 'garbage collection' ignored
Fatal Python error: unexpected exception during garbage collection
Abort trap
$
----------
components: Interpreter Core
messages: 63448
nosy: ijmorlan
severity: normal
status: open
title: Problem reporting non-keyword arg after keyword arg syntax error
type: compile error
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2269>
__________________________________
More information about the Python-bugs-list
mailing list