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 vstinner
Recipients christian.heimes, jftuga, vstinner
Date 2012-09-20.12:08:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It looks like os.stat() and os.path.getsize() converts the list into a byte string. It does something like:

>>> x=[]; y=bytes(x); print(y.decode("ascii"))

>>> x=[65, 66, 67]; y=bytes(x); print(y.decode("ascii"))
>>> x=[None]; y=bytes(x); print(y.decode("ascii"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'NoneType' object cannot be interpreted as an integer
Date User Action Args
2012-09-20 12:08:18vstinnersetrecipients: + vstinner, christian.heimes, jftuga
2012-09-20 12:08:18vstinnersetmessageid: <>
2012-09-20 12:08:17vstinnerlinkissue15972 messages
2012-09-20 12:08:17vstinnercreate