Message307253
Nick pointed me at this issue for the undeprecation of inspect.getfullargspec(). While I'm fine with the un-deprecation for compatibility reasons, I would rather the function not last beyond Python 3 un-deprecated. Nick says, though that:
"""
... the undeprecation
isn't a Python 2/3 issue, it's a "tuples, lists and dicts are really
handy representations of things, and Python developers often prefer
them to more structured objects" issue.
The modern inspect.getfullargspec implementation is a relatively thin
wrapper around inspect.signature, and the only lossy part of the
output transformation is that you can't tell the difference between
positional-only and positional-or-keyword parameters.
"""
My argument is TOOWDI and as of right now there's 3 for getting parameter information for functions (of which only one is currently deprecated). I would also argue that if people want a "signature to core data structure" translation then that can be covered by a package on PyPI since even now getfullargspec() is lossy and we don't need that kind of pragmatic support in the stdlib for this. |
|
Date |
User |
Action |
Args |
2017-11-29 18:24:28 | brett.cannon | set | recipients:
+ brett.cannon, ncoghlan, larry, ned.deily, r.david.murray, SilentGhost, python-dev, eric.snow, serhiy.storchaka, yselivanov, Tim.Graham, ryan.petrello |
2017-11-29 18:24:28 | brett.cannon | set | messageid: <1511979868.54.0.213398074469.issue27172@psf.upfronthosting.co.za> |
2017-11-29 18:24:28 | brett.cannon | link | issue27172 messages |
2017-11-29 18:24:28 | brett.cannon | create | |
|