Message170804
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 |
|
Date |
User |
Action |
Args |
2012-09-20 12:08:18 | vstinner | set | recipients:
+ vstinner, christian.heimes, jftuga |
2012-09-20 12:08:18 | vstinner | set | messageid: <1348142898.16.0.337903904038.issue15972@psf.upfronthosting.co.za> |
2012-09-20 12:08:17 | vstinner | link | issue15972 messages |
2012-09-20 12:08:17 | vstinner | create | |
|