> I concur: "overloading" extract to mean (the equivalent of) either > getattr or getitem depending on the argument type doesn't look > good, besides making it unusable to extract some items from dicts. Agreed. I've seen too many of such "clever" overloading schemes in a past life. > Since these functions or types are going to be in operator, I think > we can afford to "spend" two names to distinguish functionality > (even though attgetter and itemgetter look nowhere as neat as > extract -- I don't have better suggestions offhand). Right. --Guido van Rossum (home page: http://www.python.org/~guido/)
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