Message154778
>>> marshal.loads('T')
True
>>> marshal.loads(b'T')
True
Contrast with:
>>> marshal.load(io.BytesIO(b'T'))
True
>>> marshal.load(io.StringIO('T'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: f.read() returned not bytes but str |
|
Date |
User |
Action |
Args |
2012-03-02 16:25:12 | pitrou | set | recipients:
+ pitrou |
2012-03-02 16:25:12 | pitrou | set | messageid: <1330705512.68.0.880632816673.issue14177@psf.upfronthosting.co.za> |
2012-03-02 16:25:12 | pitrou | link | issue14177 messages |
2012-03-02 16:25:11 | pitrou | create | |
|