[issue17424] help() should use the class signature

2014-06-20 Thread Yury Selivanov
Yury Selivanov added the comment: Since 3.4, help() uses signature. Closing this one. -- nosy: +yselivanov resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17424

[issue17424] help() should use the class signature

2014-06-13 Thread Mark Lawrence
Mark Lawrence added the comment: issue17053 was closed in favour of issue19674 but I don't know if this issue is a duplicate of the former anyway. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17424

[issue17424] help() should use the class signature

2013-03-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: This might be a duplicate of issue17053, but the patch provided there doesn't resolve the issue, at least as far as I know it. Here is an example, from David Beazley's talk at PyCon 2013: from inspect import Parameter, Signature def

[issue17424] help() should use the class signature

2013-03-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: If I read the code correctly help(pyth.__init__) won't use the __signature__ because that is an attribute of the type, not of the method itself. With the patch in issue17053 help should be better when __init__'s signatuer is set explicitly: class

[issue17424] help() should use the class signature

2013-03-14 Thread Sean Reifschneider
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