New submission from Larry Hastings:

For an object O that are bound to something (either a class or an instance), 
help(O) traditionally shows the bound argument.  For this code:

    class C:
        def foo(self, a):  pass

    c = C()

help(c.foo) would show the signature as "(self, a)", even though self has been 
bound.

My recent changes to Python's type system (#20189), to add inspect.Signature 
support for builtins, broke this.  The previous behavior should be restored.

----------
assignee: larry
messages: 209078
nosy: larry, zach.ware
priority: deferred blocker
severity: normal
stage: needs patch
status: open
title: help(bound_builtin_class) does not display self
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20379>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to