Message108063
Update and improve the patch:
- Update the patch to py3k (replace tabs by spaces)
- check if _PyUnicode_AsString() result is NULL
- _Py_FindSourceFile() returns the file instead of NULL on success!
- use directly "utf-8" instead of calling PyUnicode_GetDefaultEncoding() for the default source code encoding (which is constant)
- use PyUnicode_FromFormat() instead of PyOS_snprintf() in tb_displayline() to avoid conversion from unicode to utf-8 and then convert utf-8 back to unicode (in PyFile_WriteString). name type is now PyObject*
- reindent also PyTracebackObject structure in traceback.h, just because I hate tabs :-) |
|
Date |
User |
Action |
Args |
2010-06-17 21:11:45 | vstinner | set | recipients:
+ vstinner, jafo, amaury.forgeotdarc, r_mosaic, flox |
2010-06-17 21:11:45 | vstinner | set | messageid: <1276809105.5.0.0281343292329.issue6543@psf.upfronthosting.co.za> |
2010-06-17 21:11:43 | vstinner | link | issue6543 messages |
2010-06-17 21:11:43 | vstinner | create | |
|