Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a098b33 commit 74923d7Copy full SHA for 74923d7
1 file changed
Doc/lib/libfuncs.tex
@@ -80,6 +80,15 @@ \section{Built-in Functions \label{built-in-funcs}}
80
above.}
81
\end{funcdesc}
82
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
+
92
\begin{funcdesc}{bool}{\optional{x}}
93
Convert a value to a Boolean, using the standard truth testing
94
procedure. If \code{x} is false, this returns \code{False};
0 commit comments