]> granicus.if.org Git - python/commitdiff
add an index entry for __getnewargs__()
authorFred Drake <fdrake@acm.org>
Wed, 5 May 2004 04:56:06 +0000 (04:56 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 5 May 2004 04:56:06 +0000 (04:56 +0000)
Doc/lib/libpickle.tex

index e6e8c7cd0b6a643d7d750b1713e814d5dcfc7901..9e45a9608689110295a58e629de7abfd88be0b97 100644 (file)
@@ -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