[issue20823] Clarify copyreg.pickle() documentation

2017-06-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you update your patch Peter, and since CPython development is moved to GitHub, create a pull request? -- ___ Python tracker

[issue20823] Clarify copyreg.pickle() documentation

2017-02-18 Thread Serhiy Storchaka
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

[issue20823] Clarify copyreg.pickle() documentation

2014-03-02 Thread Peter Otten
New submission from Peter Otten: The documentation for copyreg.pickle(type, function, constructor=None) has the sentence TypeError will be raised if *object* is a class or *constructor* is not callable. It's not clear to me what object refers to. I believe it refers to the first arg

[issue20823] Clarify copyreg.pickle() documentation

2014-03-02 Thread Peter Otten
Changes by Peter Otten __pete...@web.de: -- keywords: +patch Added file: http://bugs.python.org/file34263/copyreg.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20823 ___