[ python-Bugs-1042238 ] Lib/compiler chokes on certain genexps
SourceForge.net
noreply at sourceforge.net
Thu Oct 7 15:38:19 CEST 2004
Bugs item #1042238, was opened at 2004-10-07 14:35
Message generated for change (Comment added) made by mwh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1042238&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Hudson (mwh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Lib/compiler chokes on certain genexps
Initial Comment:
Noticed this because test_compiler fails on _strptime
as of yesterday.
Here's what seems to be a fairly minimal example:
f((x for x in y), 1)
The traceback is huge, but ends with:
File
"/home/mwh/src/python/dist/src/Lib/compiler/transformer.py",
line 687, in power
node = self.com_apply_trailer(node, elt)
File
"/home/mwh/src/python/dist/src/Lib/compiler/transformer.py",
line 1144, in com_apply_trailer
return self.com_call_function(primaryNode, nodelist[2])
File
"/home/mwh/src/python/dist/src/Lib/compiler/transformer.py",
line 1169, in com_call_function
raise SyntaxError, 'generator expression needs
parenthesis'
SyntaxError: generator expression needs parenthesis
Might be a problem in transformer.py, not really sure.
----------------------------------------------------------------------
>Comment By: Michael Hudson (mwh)
Date: 2004-10-07 14:38
Message:
Logged In: YES
user_id=6656
Hang on, the exception is *inside* transformer.py. Duh.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1042238&group_id=5470
More information about the Python-bugs-list
mailing list