[Python-checkins] cpython (2.7): Fix inspect.ismethod() doc
victor.stinner
python-checkins at python.org
Fri Mar 11 14:50:04 EST 2016
https://hg.python.org/cpython/rev/813a0e0934ce
changeset: 100483:813a0e0934ce
branch: 2.7
parent: 100479:f0c895fb0374
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Mar 11 11:27:46 2016 +0100
summary:
Fix inspect.ismethod() doc
Closes #16851: Fix inspect.ismethod() doc, return also True if object is an
unbound method.
Patch written by Anna Koroliuk.
files:
Doc/library/inspect.rst | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -272,7 +272,8 @@
.. 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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list