[Python-Dev] Tag trackbacks with version (was Re: readd u'' literal support in 3.3?)

Terry Reedy tjreedy at udel.edu
Sat Dec 10 05:11:57 CET 2011


On 12/9/2011 5:17 AM, Nick Coghlan wrote:

> As Chris pointed out though, the real problem with the "repeatedly run
> 2to3" workflow is that it can make interpreting tracebacks from the
> field *really* hard.

This just gave me the idea of tagging tracebacks with the Python version 
number. Something like

Traceback (Py3.2.2, most recent call last):

and perhaps with the platform also

Traceback (most recent call last) [Py3.2.2 on win23]:

Since computation has stopped, the few extra milliseconds is trivial. 
This would certainly help on Python list and the tracker when people do 
post the traceback (which they do not always) without version and system 
(which they often do not, especially on Python list). It might suggest 
to people that this is important info to include. I wonder if this would 
also help with tracebacks sent to library/app developers.

-- 
Terry Jan Reedy



More information about the Python-Dev mailing list