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
e709694a
Commit
e709694a
authored
Oct 15, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#4968: updates to inspect.is* function docs.
parent
96ed0251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
Doc/library/inspect.rst
Doc/library/inspect.rst
+10
-7
No files found.
Doc/library/inspect.rst
View file @
e709694a
...
...
@@ -204,18 +204,19 @@ attributes:
.. function:: isclass(object)
Return true if the object is a class.
Return true if the object is a class, whether built-in or created in Python
code.
.. function:: ismethod(object)
Return true if the object is a
method
.
Return true if the object is a
bound method written in Python
.
.. function:: isfunction(object)
Return true if the object is a Python function
or unnamed (:term:`lambda`)
funct
ion.
Return true if the object is a Python function
, which includes functions
created by a :term:`lambda` express
ion.
.. function:: isgeneratorfunction(object)
...
...
@@ -245,13 +246,14 @@ attributes:
.. function:: isbuiltin(object)
Return true if the object is a built-in function.
Return true if the object is a built-in function
or a bound built-in method
.
.. function:: isroutine(object)
Return true if the object is a user-defined or built-in function or method.
.. function:: isabstract(object)
Return true if the object is an abstract base class.
...
...
@@ -259,8 +261,9 @@ attributes:
.. function:: ismethoddescriptor(object)
Return true if the object is a method descriptor, but not if :func:`ismethod`
or :func:`isclass` or :func:`isfunction` are true.
Return true if the object is a method descriptor, but not if
:func:`ismethod`, :func:`isclass`, :func:`isfunction` or :func:`isbuiltin`
are true.
This, for example, is true of ``int.__add__``. An object passing this test
has a :attr:`__get__` attribute but not a :attr:`__set__` attribute, but
...
...
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