]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
__new__ is a static method
authorGeorg Brandl <georg@python.org>
Fri, 26 Aug 2005 12:56:17 +0000 (12:56 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 26 Aug 2005 12:56:17 +0000 (12:56 +0000)
Doc/ref/ref3.tex

index 0b79dfdc0fb46d5574d8dbe81d4c1050f5c97372..d78e546bf59fa9692702df897854b46d90d0d01f 100644 (file)
@@ -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