]> granicus.if.org Git - python/commit
#17476: make allmethods actually return all methods.
authorR David Murray <rdmurray@bitdance.com>
Tue, 19 Mar 2013 06:31:06 +0000 (02:31 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 19 Mar 2013 06:31:06 +0000 (02:31 -0400)
commit9929bc543a014f3c7f764d79a614fc8a9751d7ce
tree52691986335069ed61c500bfb42f96de8e140a8d
parenta846f5ace80977f922e8295441afc668910fc894
#17476: make allmethods actually return all methods.

This fixes a regression relative to Python2.  (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).

This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.

Original patch by Matt Bachmann.
Lib/pydoc.py
Lib/test/test_pydoc.py
Misc/NEWS