Christian Heimes added the comment: 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 ... ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19209> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com