[Python-Dev] Updated PEP 362 (Function Signature Object) (original) (raw)
Steven D'Aprano steve at pearwood.info
Wed Jun 6 18:16:45 CEST 2012
- Previous message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Next message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Larry Hastings wrote:
[...] "Changes to the Signature object, or to any of its data members, do not affect the function itself."
which leaves the possibility that signature may no longer match the actual argument spec, for some reason. If you remove getfullargspec, people will have to reinvent it to deal with such cases. There's no reason why they should disagree. The "some reason" would be if some doorknob decided to change it--the objects are mutable, because there's no good reason to make them immutable.
Nevertheless, the world is full of doorknobs, and people will have to deal with their code.
The case for deprecating getfullargspec is weak. The case for deprecating it right now is even weaker. Let's not rush to throw away working code.
-- Steven
- Previous message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Next message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]