[Python-checkins] CVS: python/dist/src/Doc/lib libfuncs.tex,1.96,1.97 libstdtypes.tex,1.76,1.77

Fred L. Drake fdrake@users.sourceforge.net
2001年12月03日 09:32:29 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv13772/lib
Modified Files:
	libfuncs.tex libstdtypes.tex 
Log Message:
Remove most references to __members__ and __methods__, leaving only one pair
of references that now state that these attributes have been removed,
directing the reader to the dir() function.
This closes SF bug #456420.
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.96
retrieving revision 1.97
diff -C2 -d -r1.96 -r1.97
*** libfuncs.tex	2001年11月07日 06:28:47	1.96
--- libfuncs.tex	2001年12月03日 17:32:27	1.97
***************
*** 206,211 ****
 symbol table. With an argument, attempts to return a list of valid
 attribute for that object. This information is gleaned from the
! object's \member{__dict__}, \member{__methods__} and \member{__members__}
! attributes, if defined. The list is not necessarily complete. For
 example, for classes, attributes defined in base classes are not
 included, and for class instances, methods are not included.
--- 206,211 ----
 symbol table. With an argument, attempts to return a list of valid
 attribute for that object. This information is gleaned from the
! object's \member{__dict__} attribute, if defined, and from the class
! or type object. The list is not necessarily complete. For
 example, for classes, attributes defined in base classes are not
 included, and for class instances, methods are not included.
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -d -r1.76 -r1.77
*** libstdtypes.tex	2001年11月28日 07:26:15	1.76
--- libstdtypes.tex	2001年12月03日 17:32:27	1.77
***************
*** 1391,1404 ****
 
 \begin{memberdesc}[object]{__methods__}
! List of the methods of many built-in object types. For example,
! \code{[].__methods__} yields \code{['append', 'count', 'index',
! 'insert', 'pop', 'remove', 'reverse', 'sort']}. This usually does not
! need to be explicitly provided by the object.
 \end{memberdesc}
 
 \begin{memberdesc}[object]{__members__}
! Similar to \member{__methods__}, but lists data attributes. This
! usually does not need to be explicitly provided by the object, and
! need not include the names of the attributes defined in this section.
 \end{memberdesc}
 
--- 1391,1401 ----
 
 \begin{memberdesc}[object]{__methods__}
! \deprecated{2.2}{Use the built-in function \function{dir()} to get a
! list of an object's attributes. This attribute is no longer available.}
 \end{memberdesc}
 
 \begin{memberdesc}[object]{__members__}
! \deprecated{2.2}{Use the built-in function \function{dir()} to get a
! list of an object's attributes. This attribute is no longer available.}
 \end{memberdesc}
 

AltStyle によって変換されたページ (->オリジナル) /