[Python-ideas] grouping / dict of lists

Steven D'Aprano steve at pearwood.info
Mon Jul 2 06:47:47 EDT 2018


On Mon, Jul 02, 2018 at 02:52:03AM -0700, Michael Selik wrote:

> Third, some classes might have a rich equality method that allows many
> interesting values to all wind up in the same group even if using the
> default "identity" key-function.

I would expect an identity key function to group by *identity* (is), not 
equality.

But I would expect the default grouper to group by *equality*.


-- 
Steve


More information about the Python-ideas mailing list