Terry J. Reedy added the comment:

Code objects get wrapped in 3 tuple layers before being 'pickled', so a private 
dispatch is the easiet solution.  Since copyreg.dispatch_table has only two 
items to copy, I pushed a version of the first patch.  Since private dispatch 
tables are new in 3.3 and not in 2.7, I withdraw the idea of patching 2.7.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21986>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to