[Tutor] traceback again: __traceback__ arg for exceptions in py3.0

spir denis.spir at free.fr
Thu Jan 15 23:29:48 CET 2009


I just discovered the following:

PEP 3134: Exception objects now store their traceback as the __traceback__ attribute. This means
that an exception object now contains all the information pertaining to an exception, and there
are fewer reasons to use sys.exc_info() (though the latter is not removed).

in http://docs.python.org/dev/3.0/whatsnew/3.0.html

denis

------
la vida e estranya


More information about the Tutor mailing list