[Python-ideas] Enhancing dict.values
Nathan Schneider
neatnate at gmail.com
Sat May 28 06:22:40 EDT 2016
On Sat, May 28, 2016 at 2:41 AM, Greg Ewing <greg.ewing at canterbury.ac.nz>
wrote:
> Steven D'Aprano wrote:
>
> "getmany" doesn't tell you, many of what?
>>
>
> I think the idea is that it would get the same kind
> of things that get() gets, i.e. items by their keys.
>
>
>
My slight hesitation about "many" is that it's a subjective quantity. (Are
2 or 3 keys enough to count as "many"?)
Another option would be 'geteach'—i.e., for each key provided, get a value.
Or 'getmult' (multiple), but that could be mistaken as multiplication.
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160528/e4cdada2/attachment-0001.html>
More information about the Python-ideas
mailing list