Andre Roberge <andre.robe...@gmail.com> added the comment:

Terry: as per your earlier comment, I have tried to use Friendly-traceback with 
the latest version. While it does set the exception hook correctly, it is not 
useful. 

Friendly-traceback (FT) needs to have access to the code that was executed. 
FT's REPL caches the code (similarly to what IPython does, but not CPython) 
prior to execution so that it can retrieve it correctly, have access to the 
relevant execution frame, etc.  This is not possible when using IDLE's REPL. In 
fact, for some types of exceptions, when FT tries to get access to the code, it 
ends up triggering secondary exceptions.

However, using the method describe in FT's documentation (with relies on FT's 
own console) still works correctly.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43008>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to