Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74923d7

Browse files
committed
SF bug #560286: Add docs for 'basestring'
1 parent a098b33 commit 74923d7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/lib/libfuncs.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ \section{Built-in Functions \label{built-in-funcs}}
8080
above.}
8181
\end{funcdesc}
8282

83+
\begin{funcdesc}{basestring}{}
84+
This abstract type is the superclass for \class{str} and \class{unicode}.
85+
It cannot be called or instantiated, but it can be used to test whether
86+
an object is an instance of \class{str} or \class{unicode}.
87+
\code{isinstance(obj, basestring)} is equivalent to
88+
\code{isinstance(obj, (str, unicode))}.
89+
\versionadded{2.3}
90+
\end{funcdesc}
91+
8392
\begin{funcdesc}{bool}{\optional{x}}
8493
Convert a value to a Boolean, using the standard truth testing
8594
procedure. If \code{x} is false, this returns \code{False};

0 commit comments

Comments
 (0)