[Python-checkins] CVS: python/dist/src/Doc/ref ref3.tex,1.78,1.79
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 07 Dec 2001 14:03:20 -0800
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv15172/ref
Modified Files:
ref3.tex
Log Message:
Correct the description of im_class. (Fred, this is changed in 2.2.
Should this be labeled as changed? How?)
Index: ref3.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -d -r1.78 -r1.79
*** ref3.tex 2001/12/03 17:32:27 1.78
--- ref3.tex 2001/12/07 22:03:18 1.79
***************
*** 448,453 ****
Special read-only attributes: \member{im_self} is the class instance
object, \member{im_func} is the function object;
! \member{im_class} is the class that defined the method (which may be a
! base class of the class of which \member{im_self} is an instance);
\member{__doc__} is the method's documentation (same as
\code{im_func.__doc__}); \member{__name__} is the method name (same as
--- 448,453 ----
Special read-only attributes: \member{im_self} is the class instance
object, \member{im_func} is the function object;
! \member{im_class} is the class of \member{im_self} for bound methods,
! or the class that asked for the method for unbound methods);
\member{__doc__} is the method's documentation (same as
\code{im_func.__doc__}); \member{__name__} is the method name (same as
***************
*** 468,473 ****
(instance attribute), \method{im_self} is the instance, and the method
object is said to be bound. For
! instance, when \class{C} is a class which contains a definition for a
! function \method{f()}, \code{C.f} does not yield the function object
\code{f}; rather, it yields an unbound method object \code{m} where
\code{m.im_class} is \class{C}, \code{m.im_func} is \method{f()}, and
--- 468,473 ----
(instance attribute), \method{im_self} is the instance, and the method
object is said to be bound. For
! instance, when \class{C} is a class which has a method
! \method{f()}, \code{C.f} does not yield the function object
\code{f}; rather, it yields an unbound method object \code{m} where
\code{m.im_class} is \class{C}, \code{m.im_func} is \method{f()}, and
***************
*** 598,602 ****
object, it is transformed into an unbound user-defined method object
(see above). The \member{im_class} attribute of this method object is the
- class in which the function object was found, not necessarily the
class for which the attribute reference was initiated.
\obindex{class}
--- 598,601 ----
***************
*** 640,644 ****
case), it is transformed into an unbound user-defined method object
(see above). The \member{im_class} attribute of this method object is
! the class in which the function object was found, not necessarily the
class of the instance for which the attribute reference was initiated.
If no class attribute is found, and the object's class has a
--- 639,643 ----
case), it is transformed into an unbound user-defined method object
(see above). The \member{im_class} attribute of this method object is
! the
class of the instance for which the attribute reference was initiated.
If no class attribute is found, and the object's class has a