[Python-ideas] An identity dict

Benjamin Peterson benjamin at python.org
Sun May 30 16:27:05 CEST 2010


Antoine Pitrou <solipsis at ...> writes:
> Perhaps it would be more useful to add a generic
> collections.keyfuncdict, taking a function which applied to a key

Perhaps; I'm only really interested in the identity version. That could be
specified by keyfuncdict(None, None).







More information about the Python-ideas mailing list