diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-03-19 15:05:52 -0700 |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-03-19 15:05:52 -0700 |
commit | cca8507758d69f8109ef25cd610218cfb4a3326b (patch) | |
tree | c84a1a4eba43beda4a9b29726bf1d33bc8004bf0 /Lib/pydoc.py | |
parent | 0408bf9cfb0dac07bf378f10af771fab41ba0d52 (diff) | |
parent | d17ca23828287eb79f28de7c50acf25c29b41e4e (diff) | |
download | cpython-git-cca8507758d69f8109ef25cd610218cfb4a3326b.tar.gz |
merge heads in 3.3
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 5 |
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 = {} |