[ python-Bugs-1487966 ] SystemError with conditional expression in assignment
SourceForge.net
noreply at sourceforge.net
Mon May 15 09:04:58 CEST 2006
Bugs item #1487966, was opened at 2006-05-13 09:25
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1487966&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.5
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: iga Seilnacht (zseil)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: SystemError with conditional expression in assignment
Initial Comment:
When a conditional expression appears on the left
side of an assignment, SystemError is raised instead
of SyntaxError. Example:
Python 2.5a2 (trunk:45989M, May 13 2006, 15:40:42)
[MSC v.1310 32 bit (Intel)] on win32
>>> a if True else b = 3
SystemError: unexpected expression in assignment 5 (line 1)
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2006-05-15 00:04
Message:
Logged In: YES
user_id=33168
Thanks for the patch!
Committed revision 46000.
----------------------------------------------------------------------
Comment By: iga Seilnacht (zseil)
Date: 2006-05-13 13:50
Message:
Logged In: YES
user_id=1326842
Attaching a patch. Most of the changes
in test_syntax are due to error renumbering.
All tests passed with this patch applied.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1487966&group_id=5470
More information about the Python-bugs-list
mailing list