[ python-Bugs-1385040 ] compiler module does not detect a syntax error
SourceForge.net
noreply at sourceforge.net
Mon Dec 19 10:58:07 CET 2005
Bugs item #1385040, was opened at 2005-12-19 09:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1385040&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Harri Pasanen (harripasanen)
Assigned to: Nobody/Anonymous (nobody)
Summary: compiler module does not detect a syntax error
Initial Comment:
import compiler
compiler.parse("def foo(a=1,b): pass")
Gives:
Module(None, Stmt([Function(None, 'foo', ['a', 'b'],
[Const(1)], 0, None, Stmt([Pass()]))]))
However, the python interpreter itself barks for the
same code:
SyntaxError: non-default argument follows default
argument
-Harri
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1385040&group_id=5470
More information about the Python-bugs-list
mailing list