diff options
author | Fred Drake <fdrake@acm.org> | 2004-05-05 04:56:06 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2004-05-05 04:56:06 (GMT) |
commit | 8aa8c84d18aecdc63279ccd82cf4c7815900fe1c (patch) | |
tree | c5c617dd1f14c0c09f9cc59fe2283211eefbff1f /Doc | |
parent | 0de77d1d6e899ee98d4ddfb1ac3272b0f69b1199 (diff) | |
download | cpython-8aa8c84d18aecdc63279ccd82cf4c7815900fe1c.zip cpython-8aa8c84d18aecdc63279ccd82cf4c7815900fe1c.tar.gz cpython-8aa8c84d18aecdc63279ccd82cf4c7815900fe1c.tar.bz2 |
add an index entry for __getnewargs__()
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libpickle.tex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/lib/libpickle.tex b/Doc/lib/libpickle.tex index e6e8c7c..9e45a96 100644 --- a/Doc/lib/libpickle.tex +++ b/Doc/lib/libpickle.tex @@ -458,6 +458,8 @@ the instance. \withsubitem{(copy protocol)}{\ttindex{__getinitargs__()}} \withsubitem{(instance constructor)}{\ttindex{__init__()}} +\withsubitem{(copy protocol)}{\ttindex{__getnewargs__()}} + New-style types can provide a \method{__getnewargs__()} method that is used for protocol 2. Implementing this method is needed if the type establishes some internal invariants when the instance is created, or |