On Wed, Jun 6, 2012 at 12:16 PM, Steven D'Aprano <steve at pearwood.info>wrote: > 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. > This is also Python, the language that assumes everyone is an consenting adult. > > 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. > > If people really want to keep getullargspec() around then I want to at least add a note to the function that signature objects exist as an alternative (but not vice-versa). I personally still regret the getopt/argparse situation and this feels like that on a smaller scale. -Brett > > > -- > Steven > > ______________________________**_________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/**mailman/listinfo/python-dev<http://mail.python.org/mailman/listinfo/python-dev> > Unsubscribe: http://mail.python.org/**mailman/options/python-dev/** > brett%40python.org<http://mail.python.org/mailman/options/python-dev/brett%40python.org> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120606/1ed511dc/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4