[Python-Dev] sys.last_traceback - annoying pdb behaviour

Guido van Rossum guido at python.org
Sun Aug 19 00:11:48 CEST 2007


On 8/18/07, Alexander Schremmer <2007a at usenet.alexanderweb.de> wrote:
> Indeed, I did not see that it is also set in pythonrun. How do you think
> about changing pdb.pm to use exc_info if last_exception is not set?

That would just confuse you if you're counting on that behavior, and
then some time later last_exception gets set and you suddenly don't
get the behavior you expected. pdb.pm() is *only* for use at the
command-line prompt (that's why its name is so short :-).

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list