On Fri, 14 Aug 2020 at 11:10, Chris Angelico <ros...@gmail.com> wrote: > IMO the collections module isn't really right for something like that, > but if you really need a helper function for this one-liner, then I'd > say having one in your own code is perfectly reasonable.
In my experience I used it a lot, and I saw many devs online that implemented their solution or asked about it. Not sure if collections module is appropriate, but IMO an helper function will be very useful. @Steven: I continue the discussion with your objections in private. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/EH4QKKZGVVVJJT2HETVCSLCXNJRJEEF2/ Code of Conduct: http://python.org/psf/codeofconduct/