Message216342
Since getfullargspec is new in Python 3 and inspect.signature fundamentally improves things in Python 3 due to Argument Clinic I would say go ahead and code deprecate getfullargspec (we can do a DeprecationWarning for 3.5 and 3.6 and remove in 3.7; people needing compatibility can just use getargspec). As for getargspec, it was already deprecated so just leave it deprecated and update its message to say to use inspect.signature.
As for keeping track of this stuff, Stéphane, as part of the test that makes sure the warning is raised, add to that test -- don't need a separate method -- some code that will fail if the function exists in Python 3.7 or later. |
|
Date |
User |
Action |
Args |
2014-04-15 17:28:29 | brett.cannon | set | recipients:
+ brett.cannon, ncoghlan, larry, yselivanov, matrixise |
2014-04-15 17:28:29 | brett.cannon | set | messageid: <1397582909.93.0.605313091008.issue20438@psf.upfronthosting.co.za> |
2014-04-15 17:28:29 | brett.cannon | link | issue20438 messages |
2014-04-15 17:28:29 | brett.cannon | create | |
|