[issue8087] Unupdated source file in traceback

Diego Mascialino report at bugs.python.org
Sat Oct 8 17:52:43 CEST 2011


Diego Mascialino <dmascialino at gmail.com> added the comment:

> So to me, your warning will only be useful in the case where I modified the source, forgot to reload and got the same error again with a wrong line displayed. Also note that reloading is not so common; usually you just restart your application and that will give you the right traceback.

I know the case when this happens is really unsusual, but the
interperter could be able to alert you than that line of the traceback
is wrong.

> Also I'm not sure the warning you proposed is the best way to handle this.

I agree that, another approach is to save a copy of the source file
associated to the compiled code (like a .pys).

----------

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


More information about the Python-bugs-list mailing list