[Python-checkins] python/dist/src/Doc/lib libtypes.tex,1.52,1.53

fdrake@sourceforge.net fdrake@sourceforge.net
Tue, 21 May 2002 07:28:24 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv31047/lib

Modified Files:
	libtypes.tex 
Log Message:
Add availability information for a couple of the types, and notes on writing
string-type tests for versions of Python built without Unicode support.


Index: libtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libtypes.tex,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** libtypes.tex	29 Sep 2001 13:53:21 -0000	1.52
--- libtypes.tex	21 May 2002 14:28:22 -0000	1.53
***************
*** 49,53 ****
  
  \begin{datadesc}{ComplexType}
! The type of complex numbers (e.g. \code{1.0j}).
  \end{datadesc}
  
--- 49,54 ----
  
  \begin{datadesc}{ComplexType}
! The type of complex numbers (e.g. \code{1.0j}).  This is not defined
! if Python was built without complex number support.
  \end{datadesc}
  
***************
*** 57,61 ****
  
  \begin{datadesc}{UnicodeType}
! The type of Unicode character strings (e.g. \code{u'Spam'}).
  \end{datadesc}
  
--- 58,63 ----
  
  \begin{datadesc}{UnicodeType}
! The type of Unicode character strings (e.g. \code{u'Spam'}).  This is
! not defined if Python was built without Unicode support.
  \end{datadesc}
  
***************
*** 158,163 ****
  
  \begin{datadesc}{StringTypes}
! A list containing \var{StringType} and \var{UnicodeType} used to
! facilitate easier checking for any string object, e.g. \code{s in
! types.StringTypes}.
  \end{datadesc}
--- 160,168 ----
  
  \begin{datadesc}{StringTypes}
! A sequence containing \code{StringType} and \code{UnicodeType} used to
! facilitate easier checking for any string object.  Using this is more
! portable than using a sequence of the two string types constructed
! elsewhere since it only contains \code{UnicodeType} if it has been
! built in the running version of Python.  For example:
! \code{isinstance(s, types.StringTypes)}.
  \end{datadesc}