[New-bugs-announce] [issue20379] help(bound_builtin_class) does not display self
Larry Hastings
report at bugs.python.org
Fri Jan 24 15:06:42 CET 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue20379>
_______________________________________
More information about the New-bugs-announce
mailing list