[Python-3000] dict view operations (original) (raw)
Guido van Rossum guido at python.org
Tue Sep 4 20:41:37 CEST 2007
- Previous message: [Python-3000] dict view operations
- Next message: [Python-3000] dict view operations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 9/4/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> Oh, and another thing: the items views can contain unhashable values
That, of course, could be fixed: if the key-value pairs would only hash by key (ignoring the value), they would remain hashable.
How would that help? The key/value pairs are ordinary tuples, so you still wouldn't be able to look them up in another set, nor would you be able to represent d.items() & d.items() as a regular set or frozenset instance.
What use case are you thinking of that this would address?
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] dict view operations
- Next message: [Python-3000] dict view operations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]