summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-19 15:03:26 -0700
committerGregory P. Smith <greg@krypto.org>2013-03-19 15:03:26 -0700
commitdd351628942718ede440c8ffe6911f379c9e15b1 (patch)
tree1c0937103d8a7c54f185dfd208a02192da369f04 /Lib/pydoc.py
parent029273fc903bcbdd689132f153d53004a8aee0b2 (diff)
parent843fae93121ac7ac1088b0521773eff567e7b41c (diff)
downloadcpython-git-dd351628942718ede440c8ffe6911f379c9e15b1.tar.gz
merge heads in 3.2
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 37616fb3ed..fa02edaffc 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -137,7 +137,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 = {}