mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
bug [ 1261229 ] __new__ is class method
This commit is contained in:
parent
3e98736e76
commit
8fc18a2010
1 changed files with 1 additions and 1 deletions
|
@ -1056,7 +1056,7 @@ extracting a slice may not make sense. (One example of this is the
|
||||||
|
|
||||||
\begin{methoddesc}[object]{__new__}{cls\optional{, \moreargs}}
|
\begin{methoddesc}[object]{__new__}{cls\optional{, \moreargs}}
|
||||||
Called to create a new instance of class \var{cls}. \method{__new__()}
|
Called to create a new instance of class \var{cls}. \method{__new__()}
|
||||||
is a static method (special-cased so you need not declare it as such)
|
is a class method (special-cased so you need not declare it as such)
|
||||||
that takes the class of which an instance was requested as its first
|
that takes the class of which an instance was requested as its first
|
||||||
argument. The remaining arguments are those passed to the object
|
argument. The remaining arguments are those passed to the object
|
||||||
constructor expression (the call to the class). The return value of
|
constructor expression (the call to the class). The return value of
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue