[issue1218234] inspect.getsource doesn't update when a module is reloaded

Jean-Paul Calderone report at bugs.python.org
Fri Jul 16 15:27:44 CEST 2010


Jean-Paul Calderone <exarkun at twistedmatrix.com> added the comment:

Calling linecache.checkcache for every inspect.getsource call sounds like a fairly bad idea to me.

linecache.checkcache does a stat() of every single cached file.

----------
nosy: +exarkun

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


More information about the Python-bugs-list mailing list