New submission from Aigars Mahinovs:

If you run a longer running Python program, then change the Python module that 
it loaded on disk and then cause a traceback to happen in the code in that 
module, then the traceback may be nonsensical as it will reference line numbers 
from the module in memory, but print code from the same line numbers from the 
file on disk, even if they are different.

In any case there should be a prominent warning on traceback if the module in 
memory does not match the module on disk, but ideally the traceback print 
should show the code in memory - the actual code that caused the problem.

----------
components: Library (Lib)
messages: 300980
nosy: Aigars Mahinovs
priority: normal
severity: normal
status: open
title: Traceback prints different code than the running module
type: behavior
versions: Python 3.6

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

Reply via email to