[issue22599] traceback: errors in the linecache module at exit

STINNER Victor report at bugs.python.org
Wed Oct 22 14:16:03 CEST 2014


STINNER Victor added the comment:

> The patch looks fragile to me: who knows whether other similar problems can appear in other situations?

Maybe we can always ignore non fatal errors when calling linecache
from print_exception? Having the Python source code in the traceback
is better, but it's easy to get it because the filename and line
number is always present.

Maybe the linecache module can provide a better exception than the
current AttributeError?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22599>
_______________________________________


More information about the Python-bugs-list mailing list