Jean-Paul Calderone <exar...@twistedmatrix.com> added the comment:

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

Ah, sorry.  I didn't read carefully enough.  I see that the patch passes in the 
filename and checkcache restricts the work it does in that case.

Something else to consider, though, is that this change means you'll also get 
the new source if you *don't* reload the module, too.  So, what exactly is 
inspect.getsource() supposed to be doing?  Giving you the current on-disk 
contents of the relevant source file?  Or giving you the actual source 
corresponding to the object passed to it?

If the latter, then this actually needs to be more tightly integrated with 
module reloading somehow.

----------

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

Reply via email to