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).