From: Victor Stinner Date: Fri, 11 Mar 2016 10:27:46 +0000 (+0100) Subject: Fix inspect.ismethod() doc X-Git-Tag: v2.7.12rc1~184 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=498834b7b96dbb0ffc3c7dc29af8896403604235;p=thirdparty%2FPython%2Fcpython.git Fix inspect.ismethod() doc Closes #16851: Fix inspect.ismethod() doc, return also True if object is an unbound method. Patch written by Anna Koroliuk. --- diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 2b41becc1eb0..50d59e115653 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)