summaryrefslogtreecommitdiffstats
path: root/Doc/ref
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-07-15 20:45:16 (GMT)
committerFred Drake <fdrake@acm.org>2003-07-15 20:45:16 (GMT)
commite37b4ed24e71a9045ec0e552ecac466126481fdc (patch)
tree440b7afbdc2ffbf5d7f3bdd3799878465d8f3b9d /Doc/ref
parent42d90161e27cf7bf4cfdab44b5b13b6da1ef901c (diff)
downloadcpython-e37b4ed24e71a9045ec0e552ecac466126481fdc.zip
cpython-e37b4ed24e71a9045ec0e552ecac466126481fdc.tar.gz
cpython-e37b4ed24e71a9045ec0e552ecac466126481fdc.tar.bz2
Discuss calling new-style types.
Closes SF bug #453683.
Diffstat (limited to 'Doc/ref')
-rw-r--r--Doc/ref/ref3.tex10
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index 129ab09..167d885 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