From: Fred Drake Date: Tue, 15 Jul 2003 20:45:16 +0000 (+0000) Subject: Discuss calling new-style types. X-Git-Tag: v2.3c1~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e37b4ed24e71a9045ec0e552ecac466126481fdc;p=thirdparty%2FPython%2Fcpython.git Discuss calling new-style types. Closes SF bug #453683. --- diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index 129ab091fe18..167d885465ec 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -580,7 +580,15 @@ to the object denoted by \var{list}. \obindex{method} \indexii{built-in}{method} -\item[Classes] +\item[Class Types] +Class types, or ``new-style classes,'' are callable. These objects +normally act as factories for new instances of themselves, but +variations are possible for class types that override +\method{__new__()}. The arguments of the call are passed to +\method{__new__()} and, in the typical case, to \method{__init__()} to +initialize the new instance. + +\item[Classic Classes] Class objects are described below. When a class object is called, a new class instance (also described below) is created and returned. This implies a call to the class's \method{__init__()} method