Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
16e02b1a
Commit
16e02b1a
authored
Sep 09, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF bug #560286: Add docs for 'basestring'
parent
7d59c821
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+9
-0
No files found.
Doc/lib/libfuncs.tex
View file @
16e02b1a
...
...
@@ -80,6 +80,15 @@ def my_import(name):
above.
}
\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
procedure. If
\code
{
x
}
is false, this returns
\code
{
False
}
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment