Message162336
| Author |
terry.reedy |
| Recipients |
Roy.Fox, ned.deily, python-dev, roger.serwy, terry.reedy |
| Date |
2012年06月05日.09:55:43 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1338890144.15.0.427886213555.issue12510@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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'. |
|
History
|
|---|
| 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 |
|