mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
add an index entry for __getnewargs__()
This commit is contained in:
parent
0de77d1d6e
commit
8aa8c84d18
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue