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@gmail.com> wrote:


On Sat, May 28, 2016 at 2:41 AM, Greg Ewing <greg.ewing@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@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/