#17476: make allmethods actually return all methods.
authorR David Murray <rdmurray@bitdance.com>
Tue, 19 Mar 2013 06:32:35 +0000 (02:32 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 19 Mar 2013 06:32:35 +0000 (02:32 -0400)
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.

1  2 
Lib/pydoc.py
Lib/test/test_pydoc.py
Misc/NEWS

diff --cc Lib/pydoc.py
Simple merge
Simple merge
diff --cc Misc/NEWS
index 725c723b6c5c89dceeba355fa80d6a9254a68d89,5e36c4215b11056e4534eec18f318564ec2d56fd..95994ffb30796c038f80922fb3995959199c2a0e
+++ b/Misc/NEWS
@@@ -193,8 -233,9 +193,11 @@@ Core and Builtin
  Library
  -------
  
- Issue #16880: Do not assume _imp.load_dynamic() is defined in the imp module.
+ - Issue #17476: Fixed regression relative to Python2 in undocumented pydoc
+   'allmethods'; it was missing unbound methods on the class.
++- Issue #16880: Do not assume _imp.load_dynamic() is defined in the imp module.
 +
  - Issue #16389: Fixed a performance regression relative to Python 3.1 in the
    caching of compiled regular expressions.