]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix inspect.ismethod() doc
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 11 Mar 2016 10:27:46 +0000 (11:27 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 11 Mar 2016 10:27:46 +0000 (11:27 +0100)
Closes #16851: Fix inspect.ismethod() doc, return also True if object is an
unbound method.

Patch written by Anna Koroliuk.

Doc/library/inspect.rst

index 2b41becc1eb0442fe0b38e69c082b61e4ddb55a9..50d59e11565357592d92cc293aa322945f8fde92 100644 (file)
@@ -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)