Message300047
| Author |
terry.reedy |
| Recipients |
louielu, serhiy.storchaka, terry.reedy, veky |
| Date |
2017年08月10日.05:35:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1502343307.14.0.687682279713.issue19903@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This issue is about IDLE getting further out of the business of calculating signatures and depending instead on the newest (and tested) inspect function.
In 2012, the blogger used getargspec, which was deprecated for 3.x a few years before, in 3.0. I suspect that the blog is about 2.x, which is no longer relevant for IDLE development.
Inspect.getargspec was superceded by getfullargspec, which was superceded by signature. Read more at
https://docs.python.org/3/library/inspect.html#inspect.getfullargspec
https://docs.python.org/3/library/inspect.html#introspecting-callables-with-the-signature-object
Signature() has a keyword-only option follow_wrapped=True. The new patch uses this default. I suspect that this is relevant to the blogger's concern, but I don't know which value the blogger would want. Either way, I would not switch unless convinced that False is the best choice for beginning users. Any such discussion would be a new issue. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年08月10日 05:35:07 | terry.reedy | set | recipients:
+ terry.reedy, serhiy.storchaka, veky, louielu |
| 2017年08月10日 05:35:07 | terry.reedy | set | messageid: <1502343307.14.0.687682279713.issue19903@psf.upfronthosting.co.za> |
| 2017年08月10日 05:35:07 | terry.reedy | link | issue19903 messages |
| 2017年08月10日 05:35:06 | terry.reedy | create |
|