diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-11 10:27:46 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-11 10:27:46 (GMT) |
commit | 498834b7b96dbb0ffc3c7dc29af8896403604235 (patch) | |
tree | 9ee1ba4597ca12b723fe3371bbe0cf0b5f4b503b /Doc/library | |
parent | 0fd213c5d7071f7a01e2714ccf3b7d9f49230a9e (diff) | |
download | cpython-498834b7b96dbb0ffc3c7dc29af8896403604235.zip cpython-498834b7b96dbb0ffc3c7dc29af8896403604235.tar.gz cpython-498834b7b96dbb0ffc3c7dc29af8896403604235.tar.bz2 |
Fix inspect.ismethod() doc
Closes #16851: Fix inspect.ismethod() doc, return also True if object is an
unbound method.
Patch written by Anna Koroliuk.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/inspect.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 2b41bec..50d59e1 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -272,7 +272,8 @@ Note: .. function:: ismethod(object) - Return true if the object is a bound method written in Python. + Return true if the object is a bound or unbound method written in Python. + .. function:: isfunction(object) |