Message120968
| 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: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 |
|