[Python-ideas] Where should grouping() live (was: grouping / dict of lists)

Ivan Levkivskyi levkivskyi at gmail.com
Wed Jul 4 06:08:05 EDT 2018


Replying to the question in subject, I think it would be better in
collections as a class.
Having it just as a function doesn't  buy much, because one can do the same
with three lines and a defaultdict.
However, if this is a class it can support adding new elements, merge the
groupeddicts, etc.

--
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180704/ef397746/attachment.html>


More information about the Python-ideas mailing list