diff options
author | Georg Brandl <georg@python.org> | 2005-08-25 21:56:45 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-25 21:56:45 (GMT) |
commit | 8fc18a2010ae640fb4a1d209686affd76311e774 (patch) | |
tree | 1eb9fab28e38a1cd297840accf06391f67560a9e /Doc/ref | |
parent | 3e98736e760eafe8907729b4d304a42e2e5e9e76 (diff) | |
download | cpython-8fc18a2010ae640fb4a1d209686affd76311e774.zip cpython-8fc18a2010ae640fb4a1d209686affd76311e774.tar.gz cpython-8fc18a2010ae640fb4a1d209686affd76311e774.tar.bz2 |
bug [ 1261229 ] __new__ is class method
Diffstat (limited to 'Doc/ref')
-rw-r--r-- | Doc/ref/ref3.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index 46388b2..d95519f 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 |