Message162336
Upon further thought, not a problem. Stephen considered the case:
class myint(int):
# inherit __init__
def added_func(self): "some new function of an int"
In this case, fob = myint.__init__ would not be FunctionType and inspect would not be called. Tool tip would be myint.__doc__ and writer could follow style of builtins. Still an interesting test case to add.
A different question is whether the default for callables (as opposed to non-callables) should be nothing or something like 'args unknown' or 'see docs'. |
|
Date |
User |
Action |
Args |
2012-06-05 09:55:44 | terry.reedy | set | recipients:
+ terry.reedy, ned.deily, roger.serwy, python-dev, Roy.Fox |
2012-06-05 09:55:44 | terry.reedy | set | messageid: <1338890144.15.0.427886213555.issue12510@psf.upfronthosting.co.za> |
2012-06-05 09:55:43 | terry.reedy | link | issue12510 messages |
2012-06-05 09:55:43 | terry.reedy | create | |
|