From 498834b7b96dbb0ffc3c7dc29af8896403604235 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 11 Mar 2016 11:27:46 +0100 Subject: Fix inspect.ismethod() doc Closes #16851: Fix inspect.ismethod() doc, return also True if object is an unbound method. Patch written by Anna Koroliuk. --- Doc/library/inspect.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12