Message257784
For a class whose __init__ has no docstring, e.g.
class C:
def __init__(self, arg):
pass
pydoc outputs
<... cropped ...>
class C(builtins.object)
| Methods defined here:
|
| __init__(self, arg)
| Initialize self. See help(type(self)) for accurate signature.
<... cropped ...>
The last part "See help(type(self)) for accurate signature." could arguably be cropped as the correct signature is already displayed (I see that this is the docstring of object.__init__, it's not clear to me why it needs this sentence.). |
|
Date |
User |
Action |
Args |
2016-01-08 23:30:08 | Antony.Lee | set | recipients:
+ Antony.Lee, docs@python |
2016-01-08 23:30:07 | Antony.Lee | set | messageid: <1452295807.98.0.613500169742.issue26052@psf.upfronthosting.co.za> |
2016-01-08 23:30:07 | Antony.Lee | link | issue26052 messages |
2016-01-08 23:30:07 | Antony.Lee | create | |
|