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 daniel.urban
Recipients daniel.urban, july
Date 2011-03-08.17:31:41
SpamBayes Score 8.9255026e-10
Marked as misclassified No
Message-id <1299605502.66.0.766419202813.issue11441@psf.upfronthosting.co.za>
In-reply-to
Content
Apparently ast_error_finish calls PyTuple_GetItem with a value that is not a tuple, but a SyntaxError instance (in Python/ast.c line 112).  It seems that ast_error_finish expects that PyErr_Fetch will return the exception value as a tuple, and in some cases this seems correct (for example when not in an except clause), but not in this case.  I don't know much about Python exception handling in C, but it seems to me, that it shouldn't expect always a tuple (see also http://docs.python.org/dev/py3k/c-api/exceptions.html#PyErr_NormalizeException).
History
Date User Action Args
2011-03-08 17:31:42daniel.urbansetrecipients: + daniel.urban, july
2011-03-08 17:31:42daniel.urbansetmessageid: <1299605502.66.0.766419202813.issue11441@psf.upfronthosting.co.za>
2011-03-08 17:31:41daniel.urbanlinkissue11441 messages
2011-03-08 17:31:41daniel.urbancreate