summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-11 10:27:46 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-11 10:27:46 (GMT)
commit498834b7b96dbb0ffc3c7dc29af8896403604235 (patch)
tree9ee1ba4597ca12b723fe3371bbe0cf0b5f4b503b /Doc
parent0fd213c5d7071f7a01e2714ccf3b7d9f49230a9e (diff)
downloadcpython-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')
-rw-r--r--Doc/library/inspect.rst3
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)