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 akvadrako
Recipients akvadrako
Date 2017-10-12.13:43:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507815780.34.0.213398074469.issue31772@psf.upfronthosting.co.za>
In-reply-to
Content
The current import machinery will use stale cached bytecode if the source is modified more than once per second and with equal size.

A straightforward fix is to require the bytecode mtime to be greater than the source file mtime. In the unusual case where the file is written twice with the precision the filesystem records, this will ignore the cache, but at least we aren't behaving incorrectly.
History
Date User Action Args
2017-10-12 13:43:00akvadrakosetrecipients: + akvadrako
2017-10-12 13:43:00akvadrakosetmessageid: <1507815780.34.0.213398074469.issue31772@psf.upfronthosting.co.za>
2017-10-12 13:43:00akvadrakolinkissue31772 messages
2017-10-12 13:43:00akvadrakocreate