From e37b4ed24e71a9045ec0e552ecac466126481fdc Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 15 Jul 2003 20:45:16 +0000 Subject: [PATCH] Discuss calling new-style types. Closes SF bug #453683. --- Doc/ref/ref3.tex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index 129ab091fe1..167d885465e 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