This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author july
Recipients july
Date 2011-03-08.16:24:43
SpamBayes Score 2.236962e-09
Marked as misclassified No
Message-id <1299601484.28.0.341696706995.issue11441@psf.upfronthosting.co.za>
In-reply-to
Content
Normal:
>>> compile('1 = 1', '<string>', 'exec')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 1
SyntaxError: can't assign to literal

SystemError is raised instead of SyntaxError:
>>> try: abcde
... except NameError:
...  compile('1 = 1', '<string>', 'exec')
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'abcde' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
SystemError: Objects/tupleobject.c:126: bad argument to internal function

Error can be discovered by calling dis.dis('1 = 1').
History
Date User Action Args
2011-03-08 16:24:44julysetrecipients: + july
2011-03-08 16:24:44julysetmessageid: <1299601484.28.0.341696706995.issue11441@psf.upfronthosting.co.za>
2011-03-08 16:24:43julylinkissue11441 messages
2011-03-08 16:24:43julycreate