Message110438
> 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. |
|
Date |
User |
Action |
Args |
2010-07-16 13:32:01 | exarkun | set | recipients:
+ exarkun, georg.brandl, sonderblade, ajaksu2, gpolo, BreamoreBoy |
2010-07-16 13:32:01 | exarkun | set | messageid: <1279287121.42.0.621128450279.issue1218234@psf.upfronthosting.co.za> |
2010-07-16 13:31:59 | exarkun | link | issue1218234 messages |
2010-07-16 13:31:58 | exarkun | create | |
|