Bugs item #1487966, was opened at 2006-05-13 18:25
Message generated for change (Comment added) made by zseil
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: Open
Resolution: None
Priority: 5
Submitted By: Žiga Seilnacht (zseil)
Assigned to: Nobody/Anonymous (nobody)
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: Žiga Seilnacht (zseil)
Date: 2006-05-13 22: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
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to