[Python-checkins] CVS: python/dist/src/Doc/lib libstdtypes.tex,1.31,1.32

Fred L. Drake python-dev@python.org
Fri, 8 Sep 2000 20:30:37 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19755/lib

Modified Files:
	libstdtypes.tex 
Log Message:

Improve a couple of references to the language reference, making them
hyperlinks to relevant sections.

Clarify the conditions under which the "softspace" attribute of file-like
objects can "just work" (with relation to overriding of attribute access
in user-defined classes).


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** libstdtypes.tex	2000/08/18 03:12:38	1.31
--- libstdtypes.tex	2000/09/09 03:30:34	1.32
***************
*** 41,45 ****
  	\method{__nonzero__()} or \method{__len__()} method, when that
  	method returns zero.\footnote{Additional information on these
! special methods may be found in the \emph{Python Reference Manual}.}
  
  \end{itemize}
--- 41,46 ----
  	\method{__nonzero__()} or \method{__len__()} method, when that
  	method returns zero.\footnote{Additional information on these
! special methods may be found in the \citetitle[../ref/ref.html]{Python
! Reference Manual}.}
  
  \end{itemize}
***************
*** 143,149 ****
  Instances of a class normally compare as non-equal unless the class
  \withsubitem{(instance method)}{\ttindex{__cmp__()}}
! defines the \method{__cmp__()} method.  Refer to the \emph{Python
! Reference Manual} for information on the use of this method to effect
! object comparisons.
  
  \strong{Implementation note:} Objects of different types except
--- 144,150 ----
  Instances of a class normally compare as non-equal unless the class
  \withsubitem{(instance method)}{\ttindex{__cmp__()}}
! defines the \method{__cmp__()} method.  Refer to the
! \citetitle[../ref/customization.html]{Python Reference Manual} for
! information on the use of this method to effect object comparisons.
  
  \strong{Implementation note:} Objects of different types except
***************
*** 1106,1112 ****
  Classes that are trying to simulate a file object should also have a
  writable \member{softspace} attribute, which should be initialized to
! zero.  This will be automatic for classes implemented in Python; types
! implemented in C will have to provide a writable \member{softspace}
! attribute.
  \end{memberdesc}
  
--- 1107,1114 ----
  Classes that are trying to simulate a file object should also have a
  writable \member{softspace} attribute, which should be initialized to
! zero.  This will be automatic for most classes implemented in Python
! (care may be needed for objects that override attribute access); types
! implemented in C will have to provide a writable
! \member{softspace} attribute.
  \end{memberdesc}