[New-bugs-announce] [issue17424] help() should use the class signature
Sean Reifschneider
report at bugs.python.org
Thu Mar 14 22:26:30 CET 2013
New submission from Sean Reifschneider:
David Beazley in his tutorial pointed out that you could use a metaclass to create function signatures for the common use case of:
class foo:
def __init__(self, name, value, high, low):
self.name = name
self.value = value
[...]
The signature can be used so that the classes created using an automation metaclass will show a signature of "(*args)". inspect.signature will use this signature, but "help()" will not use the signature.
This is a stub created during the tutorial, I will flesh it out further during the sprints.
----------
assignee: jafo
components: Interpreter Core
messages: 184194
nosy: jafo
priority: normal
severity: normal
status: open
title: help() should use the class signature
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17424>
_______________________________________
More information about the New-bugs-announce
mailing list