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 dmalcolm
Recipients dmalcolm
Date 2010-11-11.20:56:11
SpamBayes Score 1.7968125e-07
Marked as misclassified No
Message-id <1289508975.06.0.131207802246.issue10391@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch:
  - extends the ast error-handling selftest with code that triggers this crash (on unpatched code)
  - fixes Parser/asdl_c.py to generate code using _PyUnicode_AS_STRING instead
  - contains the generated changes to Python/Python-ast.c

FWIW, it's not clear to what extent _PyUnicode_AS_STRING is deprecated, Include/unicodeobject.h currently has:
   *** This API is for interpreter INTERNAL USE ONLY and will likely
   *** be removed or changed for Python 3.1.
but I hope it won't be, it's far too useful.
History
Date User Action Args
2010-11-11 20:56:15dmalcolmsetrecipients: + dmalcolm
2010-11-11 20:56:15dmalcolmsetmessageid: <1289508975.06.0.131207802246.issue10391@psf.upfronthosting.co.za>
2010-11-11 20:56:12dmalcolmlinkissue10391 messages
2010-11-11 20:56:12dmalcolmcreate