Message170804
| 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: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 |
|