mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Clarify that copy_reg.pickle() is not intended for use with "classic" classes.
This was stated before, but a minor grammatical error made it difficult to be sure of the meaning. This closes SF bug #530143.
This commit is contained in:
parent
517a721b7f
commit
2f31d561d5
1 changed files with 5 additions and 3 deletions
|
|
@ -22,9 +22,11 @@ functions or class instances.
|
||||||
|
|
||||||
\begin{funcdesc}{pickle}{type, function\optional{, constructor}}
|
\begin{funcdesc}{pickle}{type, function\optional{, constructor}}
|
||||||
Declares that \var{function} should be used as a ``reduction''
|
Declares that \var{function} should be used as a ``reduction''
|
||||||
function for objects of type \var{type}; \var{type} should not a
|
function for objects of type \var{type}; \var{type} must not be a
|
||||||
class object. \var{function} should return either a string or a
|
``classic'' class object. (Classic classes are handled differently;
|
||||||
tuple containing two or three elements.
|
see the documentation for the \refmodule{pickle} module for
|
||||||
|
details.) \var{function} should return either a string or a tuple
|
||||||
|
containing two or three elements.
|
||||||
|
|
||||||
The optional \var{constructor} parameter, if provided, is a
|
The optional \var{constructor} parameter, if provided, is a
|
||||||
callable object which can be used to reconstruct the object when
|
callable object which can be used to reconstruct the object when
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue