diff options
author | Georg Brandl <georg@python.org> | 2005-08-26 12:56:17 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-26 12:56:17 (GMT) |
commit | 63c186b7e3a02c32b7185985cbc992c42e68ae62 (patch) | |
tree | 0faf6b212006ea4c58d6052da4f2da17b914c4f9 | |
parent | b0499974cda6cc06487baa838033570340e7a397 (diff) | |
download | cpython-63c186b7e3a02c32b7185985cbc992c42e68ae62.zip cpython-63c186b7e3a02c32b7185985cbc992c42e68ae62.tar.gz cpython-63c186b7e3a02c32b7185985cbc992c42e68ae62.tar.bz2 |
__new__ is a static method
-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 0b79dfd..d78e546 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 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 |