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 brett.cannon
Recipients Arfrever, barry, brett.cannon, eric.snow, ncoghlan, neologix, pitrou, python-dev
Date 2012-01-12.17:03:37
SpamBayes Score 2.966516e-12
Marked as misclassified No
Message-id <1326387818.1.0.0490538643018.issue13645@psf.upfronthosting.co.za>
In-reply-to
Content
LGTM (although I didn't run the unit tests and focused mainly on the importlib._bootstrap and abc changes). Only two things I would change. One is possibly deprecating path_mtime() so people don't waste time implementing it (we actually never need to remove it thanks to the ABC; otherwise we need to make sure the docs strongly state to only bother with path_stats()). The other is to say the mtime key should contain a value that is a real number (ie. float and any other numeric type that can cast to an integer). That way you get your higher resolution in the dict while still being able to use the value in writing the bytecode.

And is there any efficient way to get the stat info on a file AND its contents in a single call? If so we might want a method to support that (eg. add a 'source_bytes' key or something), but I can't think of any low-level call that supports that kind of thing.
History
Date User Action Args
2012-01-12 17:03:38brett.cannonsetrecipients: + brett.cannon, barry, ncoghlan, pitrou, Arfrever, neologix, python-dev, eric.snow
2012-01-12 17:03:38brett.cannonsetmessageid: <1326387818.1.0.0490538643018.issue13645@psf.upfronthosting.co.za>
2012-01-12 17:03:37brett.cannonlinkissue13645 messages
2012-01-12 17:03:37brett.cannoncreate