From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Tue, 2 May 2023 18:13:47 +0000 (-0700) Subject: gh-65022: Fix description of tuple return value in copyreg (#103892) X-Git-Tag: v3.12.0b1~322 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=587f2f018051049cf5d9de3e12ed5aa7644404dc;p=thirdparty%2FPython%2Fcpython.git gh-65022: Fix description of tuple return value in copyreg (#103892) --- diff --git a/Doc/library/copyreg.rst b/Doc/library/copyreg.rst index 2107215c0c19..afc3e66f0bf7 100644 --- a/Doc/library/copyreg.rst +++ b/Doc/library/copyreg.rst @@ -29,7 +29,7 @@ Such constructors may be factory functions or class instances. Declares that *function* should be used as a "reduction" function for objects of type *type*. *function* must return either a string or a tuple - containing two or five elements. See the :attr:`~pickle.Pickler.dispatch_table` + containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table` for more details on the interface of *function*. The *constructor_ob* parameter is a legacy feature and is now ignored, but if