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 <rep...@bugs.python.org> <http://bugs.python.org/issue17424> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com