summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-19 15:05:52 -0700
committerGregory P. Smith <greg@krypto.org>2013-03-19 15:05:52 -0700
commitcca8507758d69f8109ef25cd610218cfb4a3326b (patch)
treec84a1a4eba43beda4a9b29726bf1d33bc8004bf0 /Lib/pydoc.py
parent0408bf9cfb0dac07bf378f10af771fab41ba0d52 (diff)
parentd17ca23828287eb79f28de7c50acf25c29b41e4e (diff)
downloadcpython-git-cca8507758d69f8109ef25cd610218cfb4a3326b.tar.gz
merge heads in 3.3
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index fa531e9051..9dce07976d 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -132,7 +132,10 @@ def stripid(text):
return _re_stripid.sub(r'\1', text)
def _is_some_method(obj):
- return inspect.ismethod(obj) or inspect.ismethoddescriptor(obj)
+ return (inspect.isfunction(obj) or
+ inspect.ismethod(obj) or
+ inspect.isbuiltin(obj) or
+ inspect.ismethoddescriptor(obj))
def allmethods(cl):
methods = {}