[Python-checkins] python/dist/src/Doc/ref ref3.tex,1.108,1.109
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Tue, 15 Jul 2003 13:45:20 -0700
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1:/tmp/cvs-serv2829
Modified Files:
ref3.tex
Log Message:
Discuss calling new-style types.
Closes SF bug #453683.
Index: ref3.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.108
retrieving revision 1.109
diff -C2 -d -r1.108 -r1.109
*** ref3.tex 29 Jun 2003 04:53:23 -0000 1.108
--- ref3.tex 15 Jul 2003 20:45:16 -0000 1.109
***************
*** 581,585 ****
\indexii{built-in}{method}
! \item[Classes]
Class objects are described below. When a class object is called,
a new class instance (also described below) is created and
--- 581,593 ----
\indexii{built-in}{method}
! \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