[Python-checkins] python/dist/src/Doc/lib libfuncs.tex, 1.143.8.3,
1.143.8.4
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Mon Sep 8 19:14:02 EDT 2003
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv21929
Modified Files:
Tag: release23-maint
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.143.8.3
retrieving revision 1.143.8.4
diff -C2 -d -r1.143.8.3 -r1.143.8.4
*** libfuncs.tex 6 Sep 2003 05:48:07 -0000 1.143.8.3
--- libfuncs.tex 9 Sep 2003 01:13:59 -0000 1.143.8.4
***************
*** 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