From: R David Murray Date: Tue, 19 Mar 2013 06:32:35 +0000 (-0400) Subject: #17476: make allmethods actually return all methods. X-Git-Tag: v3.4.0a1~1164^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52dfc74080a8bc6949ca713d862c9324ac62ca5c;p=thirdparty%2FPython%2Fcpython.git #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. --- 52dfc74080a8bc6949ca713d862c9324ac62ca5c diff --cc Misc/NEWS index 725c723b6c5c,5e36c4215b11..95994ffb3079 --- a/Misc/NEWS +++ 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.