Commit 8aa8c84d authored by Fred Drake's avatar Fred Drake

add an index entry for __getnewargs__()

parent 0de77d1d
...@@ -458,6 +458,8 @@ the instance. ...@@ -458,6 +458,8 @@ the instance.
\withsubitem{(copy protocol)}{\ttindex{__getinitargs__()}} \withsubitem{(copy protocol)}{\ttindex{__getinitargs__()}}
\withsubitem{(instance constructor)}{\ttindex{__init__()}} \withsubitem{(instance constructor)}{\ttindex{__init__()}}
\withsubitem{(copy protocol)}{\ttindex{__getnewargs__()}}
New-style types can provide a \method{__getnewargs__()} method that is New-style types can provide a \method{__getnewargs__()} method that is
used for protocol 2. Implementing this method is needed if the type used for protocol 2. Implementing this method is needed if the type
establishes some internal invariants when the instance is created, or establishes some internal invariants when the instance is created, or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment