Kaydet (Commit) 15ad9355 authored tarafından Georg Brandl's avatar Georg Brandl

__new__ is a static method

üst 5a650a25
......@@ -1056,7 +1056,7 @@ extracting a slice may not make sense. (One example of this is the
\begin{methoddesc}[object]{__new__}{cls\optional{, \moreargs}}
Called to create a new instance of class \var{cls}. \method{__new__()}
is a class method (special-cased so you need not declare it as such)
is a static method (special-cased so you need not declare it as such)
that takes the class of which an instance was requested as its first
argument. The remaining arguments are those passed to the object
constructor expression (the call to the class). The return value of
......
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