From: Georg Brandl Date: Thu, 25 Aug 2005 21:56:49 +0000 (+0000) Subject: backport bug [ 1261229 ] __new__ is class method X-Git-Tag: v2.4.2c1~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa39d08f798cb39889fde3e59fe4cb12ce12d07c;p=thirdparty%2FPython%2Fcpython.git backport bug [ 1261229 ] __new__ is class method --- diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index d78e546bf59f..0b79dfdc0fb4 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -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 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 argument. The remaining arguments are those passed to the object constructor expression (the call to the class). The return value of