8 Oct
2011
8 Oct
'11
12:37 p.m.
On Fri, Oct 7, 2011 at 8:04 PM, Cameron Simpson
Only when the traceback was being printed. You would need to stash the modtime at import for later reference.
Actually the source file modtime there is in the compiled source (.pyc). Import use this information to know if is necessary to compile the source again. In my patch, when a traceback is going to be printed, I compare the actual modtime with the modtime stored in the pyc. Regards, Diego