From: Fred Drake Date: Wed, 5 May 2004 04:56:06 +0000 (+0000) Subject: add an index entry for __getnewargs__() X-Git-Tag: v2.4a1~450 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8aa8c84d18aecdc63279ccd82cf4c7815900fe1c;p=python add an index entry for __getnewargs__() --- diff --git a/Doc/lib/libpickle.tex b/Doc/lib/libpickle.tex index e6e8c7cd0b..9e45a96086 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