Message120968
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. |
|
Date |
User |
Action |
Args |
2010-11-11 20:56:15 | dmalcolm | set | recipients:
+ dmalcolm |
2010-11-11 20:56:15 | dmalcolm | set | messageid: <1289508975.06.0.131207802246.issue10391@psf.upfronthosting.co.za> |
2010-11-11 20:56:12 | dmalcolm | link | issue10391 messages |
2010-11-11 20:56:12 | dmalcolm | create | |
|