Python3 traceback have bugs making debugging harder:

[Py3k] line number is wrong after encoding declaration
   http://bugs.python.org/issue2384

PyTraceBack_Print() doesn't respect # coding: xxx header
   http://bugs.python.org/issue3975

Both issues has patch + testcase.

--

About the coding header, IDLE doesn't read #coding: header. Here is a fix (use 
tokenize.detect_encoding):
http://bugs.python.org/issue4008

And finally, two more patches for the encoding detecting in:
http://bugs.python.org/issue4016
 -> use tokenize.detect_encoding() in linecache (instead of a duplicate
    incomplete (eg. no UTF-8 BOM support) code to detect the encoding)
 -> reuse codecs.BOM_UTF8 in tokenize

That's all for today :)

-- 
Victor Stinner aka haypo
http://www.haypocalc.com/blog/
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to