Antoine Pitrou <pit...@free.fr> added the comment: The problem with trying to solve the following issue: "a bytes instance from python3 is pickled as custom class in protocols <3" is that if we pickle bytes from Python 3 as a 2.x str in protocol <= 2, unpickling it using Python 3 will yield a str (unicode), not a bytes object. Therefore the whole chain (pickling then unpickling) will not be idempotent.
---------- components: +Library (Lib) -None nosy: +alexandre.vassalotti, gvanrossum, pitrou versions: +Python 2.7, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6784> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com