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 christian.heimes
Recipients christian.heimes, georg.brandl, serhiy.storchaka, vstinner
Date 2013-10-09.16:47:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381337266.49.0.78203310991.issue19209@psf.upfronthosting.co.za>
In-reply-to
Content
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
...
History
Date User Action Args
2013-10-09 16:47:46christian.heimessetrecipients: + christian.heimes, georg.brandl, vstinner, serhiy.storchaka
2013-10-09 16:47:46christian.heimessetmessageid: <1381337266.49.0.78203310991.issue19209@psf.upfronthosting.co.za>
2013-10-09 16:47:46christian.heimeslinkissue19209 messages
2013-10-09 16:47:46christian.heimescreate