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 vstinner
Recipients amaury.forgeotdarc, flox, jafo, r_mosaic, vstinner
Date 2010-06-17.21:11:42
SpamBayes Score 1.398362e-06
Marked as misclassified No
Message-id <1276809105.5.0.0281343292329.issue6543@psf.upfronthosting.co.za>
In-reply-to
Content
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 :-)
History
Date User Action Args
2010-06-17 21:11:45vstinnersetrecipients: + vstinner, jafo, amaury.forgeotdarc, r_mosaic, flox
2010-06-17 21:11:45vstinnersetmessageid: <1276809105.5.0.0281343292329.issue6543@psf.upfronthosting.co.za>
2010-06-17 21:11:43vstinnerlinkissue6543 messages
2010-06-17 21:11:43vstinnercreate