This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author exarkun
Recipients BreamoreBoy, ajaksu2, exarkun, georg.brandl, gpolo, sonderblade
Date 2010-07-16.13:31:58
SpamBayes Score 0.00025886562
Marked as misclassified No
Message-id <1279287121.42.0.621128450279.issue1218234@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2010-07-16 13:32:01exarkunsetrecipients: + exarkun, georg.brandl, sonderblade, ajaksu2, gpolo, BreamoreBoy
2010-07-16 13:32:01exarkunsetmessageid: <1279287121.42.0.621128450279.issue1218234@psf.upfronthosting.co.za>
2010-07-16 13:31:59exarkunlinkissue1218234 messages
2010-07-16 13:31:58exarkuncreate