[Python-ideas] Add dict.getkey() and set.get()
Ethan Furman
ethan at stoneleaf.us
Sun Sep 15 16:43:40 CEST 2013
On 09/14/2013 05:32 PM, Raymond Hettinger wrote:
>
> Bigger is not better. Learnability matters.
+1
Which may sound strange coming from someone who was/is a proponent of adding Enum, TransformDict, and stats. A key
distinction is that Python the language is not the same as the stdlib that ships with Python.
Python the language should grow very slowly.
The stdlib should grow in order to provide a consistent, stable, and sane user experience. This includes criteria such as:
- is it widely re-implemented? (indicating a common need,
and probably slightly different multiple APIs)
- is it easy to get wrong? (indicating a complex subject)
- is it a quickly changing field? (indicating an often
changing code base)
The first two are reasons why inclusion could be a good thing, the last a reason why inclusion would be a bad thing.
--
~Ethan~
More information about the Python-ideas
mailing list