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

Fred L. Drake python-dev@python.org
Mon, 6 Nov 2000 12:17:40 -0800


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

Modified Files:
	libstdtypes.tex 
Log Message:

Document the proper exception to be raised by I/O operations on closed
files; error reported by Ng Pheng Siong <ngps@post1.com>.

Make sure that various special object attributes are properly indexed.


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -r1.40 -r1.41
*** libstdtypes.tex	2000/10/25 21:03:55	1.40
--- libstdtypes.tex	2000/11/06 20:17:37	1.41
***************
*** 973,976 ****
--- 973,977 ----
  It is written as \code{Ellipsis}.
  
+ 
  \subsubsection{File Objects\obindex{file}
                 \label{bltin-file-objects}}
***************
*** 996,1001 ****
  \begin{methoddesc}[file]{close}{}
    Close the file.  A closed file cannot be read or written anymore.
!   Any operation which requires that the file be open will raise an
!   \exception{IOError} after the file has been closed.  Calling
    \method{close()} more than once is allowed.
  \end{methoddesc}
--- 997,1002 ----
  \begin{methoddesc}[file]{close}{}
    Close the file.  A closed file cannot be read or written anymore.
!   Any operation which requires that the file be open will raise a
!   \exception{ValueError} after the file has been closed.  Calling
    \method{close()} more than once is allowed.
  \end{methoddesc}
***************
*** 1138,1141 ****
--- 1139,1143 ----
  \end{memberdesc}
  
+ 
  \subsubsection{Internal Objects \label{typesinternal}}
  
***************
*** 1150,1174 ****
  object types, where they are relevant:
  
! \begin{memberdescni}{__dict__}
! A dictionary of some sort used to store an
  object's (writable) attributes.
! \end{memberdescni}
  
! \begin{memberdescni}{__methods__}
  List of the methods of many built-in object types,
  e.g., \code{[].__methods__} yields
  \code{['append', 'count', 'index', 'insert', 'pop', 'remove',
! 'reverse', 'sort']}.
! \end{memberdescni}
  
! \begin{memberdescni}{__members__}
! Similar to \member{__methods__}, but lists data attributes.
! \end{memberdescni}
  
! \begin{memberdescni}{__class__}
  The class to which a class instance belongs.
! \end{memberdescni}
  
! \begin{memberdescni}{__bases__}
  The tuple of base classes of a class object.
! \end{memberdescni}
--- 1152,1178 ----
  object types, where they are relevant:
  
! \begin{memberdesc}[object]{__dict__}
! A dictionary or other mapping object used to store an
  object's (writable) attributes.
! \end{memberdesc}
  
! \begin{memberdesc}[object]{__methods__}
  List of the methods of many built-in object types,
  e.g., \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.
! \end{memberdesc}
  
! \begin{memberdesc}[instance]{__class__}
  The class to which a class instance belongs.
! \end{memberdesc}
  
! \begin{memberdesc}[class]{__bases__}
  The tuple of base classes of a class object.
! \end{memberdesc}