[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.147,1.148
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Mon Sep 8 19:12:20 EDT 2003
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv21687
Modified Files:
libfuncs.tex
Log Message:
SF bug #560286: Add docs for 'basestring'
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.147
retrieving revision 1.148
diff -C2 -d -r1.147 -r1.148
*** libfuncs.tex 6 Sep 2003 05:47:31 -0000 1.147
--- libfuncs.tex 9 Sep 2003 01:12:18 -0000 1.148
***************
*** 81,84 ****
--- 81,93 ----
\end{funcdesc}
+ \begin{funcdesc}{basestring}{}
+ This abstract type is the superclass for \class{str} and \class{unicode}.
+ It cannot be called or instantiated, but it can be used to test whether
+ an object is an instance of \class{str} or \class{unicode}.
+ \code{isinstance(obj, basestring)} is equivalent to
+ \code{isinstance(obj, (str, unicode))}.
+ \versionadded{2.3}
+ \end{funcdesc}
+
\begin{funcdesc}{bool}{\optional{x}}
Convert a value to a Boolean, using the standard truth testing
More information about the Python-checkins
mailing list