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 <1348142898.16.0.337903904038.issue15972@psf.upfronthosting.co.za>
In-reply-to
Content
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"))
ABC
>>> 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
History
Date User Action Args
2012-09-20 12:08:18vstinnersetrecipients: + vstinner, christian.heimes, jftuga
2012-09-20 12:08:18vstinnersetmessageid: <1348142898.16.0.337903904038.issue15972@psf.upfronthosting.co.za>
2012-09-20 12:08:17vstinnerlinkissue15972 messages
2012-09-20 12:08:17vstinnercreate