[issue20823] Clarify copyreg.pickle() documentation

Serhiy Storchaka report at bugs.python.org
Sat Feb 18 16:09:56 EST 2017


Serhiy Storchaka added the comment:

The phrase "*function* should return either a string or a tuple containing two or three elements." de-facto is outdated too. Since Python 2.3 a tuple returned by the function must have two to five elements.

copyreg.constructor() no longer does anything useful, and the constructor parameter of copyreg.pickle() is virtually ignored.

----------
nosy: +serhiy.storchaka
stage:  -> patch review
type:  -> behavior
versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20823>
_______________________________________


More information about the Python-bugs-list mailing list