[Python-ideas] Enhancing dict.values

David Mertz mertz at gnosis.cx
Sat May 28 14:03:21 EDT 2016


Worrying about how many .getmany() is seems silly. As Guido notes, it
follows the pattern of .fetchmany() in the DBAPI. That "many" might be one,
or even zero, which is fine.
On May 28, 2016 3:23 AM, "Nathan Schneider" <neatnate at gmail.com> wrote:

>
>
> 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
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160528/0116e022/attachment.html>


More information about the Python-ideas mailing list