[Python-Dev] Quick poll: should help() show bound arguments?
ncoghlan at gmail.com
Sat Jan 25 06:34:37 CET 2014
On 25 January 2014 14:36, Steven D'Aprano <steve at pearwood.info> wrote:
> On Fri, Jan 24, 2014 at 08:07:43PM -0800, Larry Hastings wrote:
>> A) pydoc and help() should not show bound parameters in the signature,
>> like inspect.signature.
>> B) pydoc and help() should show bound parameters in the signature, like
> Provided they are described as *methods* rather than *functions*, bound
> methods should not show self. Likewise for classmethod and cls. That is,
> I'm voting +1 on A provided help() doesn't confuse methods and
+1 from me for fixing the signature help() and pydoc report for bound
methods that are reported as such.
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev