Message199309
You can still pickle and unpickle the objects but the result is no longer platform-independent as it refers to "posix" or "nt" instead of "os".
>>> import os, pickle, pickletools
>>> pickletools.dis(pickle.dumps(os.stat(".")))
0: \x80 PROTO 3
2: c GLOBAL 'os _make_stat_result'
24: q BINPUT 0
26: ( MARK
...
>>> pickletools.dis(pickle.dumps(os.stat(".")))
0: \x80 PROTO 3
2: c GLOBAL 'posix stat_result'
21: q BINPUT 0
23: ( MARK
... |
|
Date |
User |
Action |
Args |
2013-10-09 16:47:46 | christian.heimes | set | recipients:
+ christian.heimes, georg.brandl, vstinner, serhiy.storchaka |
2013-10-09 16:47:46 | christian.heimes | set | messageid: <1381337266.49.0.78203310991.issue19209@psf.upfronthosting.co.za> |
2013-10-09 16:47:46 | christian.heimes | link | issue19209 messages |
2013-10-09 16:47:46 | christian.heimes | create | |
|