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 Ronan.Lamy, brett.cannon, jcea, ncoghlan
Date 2012-06-08.02:49:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
So the problem with the function is that had this been implemented in Python 3.2 it already would be outdated thanks to the 3.3 change of storing the file size in the .pyc file, and simply changing the length of the sequence returned would probably break code.

I have thought about exposing something like this over the years, and I always come back to the conclusion that it is really touchy and the best you could do is pass in the data and info you have from the source and either raise the proper exception or return the code object/bytes.
Date User Action Args
2012-06-08 02:49:26brett.cannonsetrecipients: + brett.cannon, jcea, ncoghlan, Ronan.Lamy
2012-06-08 02:49:26brett.cannonsetmessageid: <>
2012-06-08 02:49:25brett.cannonlinkissue15031 messages
2012-06-08 02:49:24brett.cannoncreate