[Python-Dev] frozenset C API? (original) (raw)
Bill Janssen janssen at parc.com
Wed Sep 5 00:26:56 CEST 2007
- Previous message: [Python-Dev] frozenset C API?
- Next message: [Python-Dev] Math.sqrt(-1) -- nan or ValueError?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dicts, sets and frozenset are implemented as hash tables, not as arrays,
I see, thanks.
The location of the "next empty slot" depends on a the key associated with the value being added (btw, where is the "key" handled in your proposed API?).
What key? It's a set, not a mapping. The value is the key.
Bill
- Previous message: [Python-Dev] frozenset C API?
- Next message: [Python-Dev] Math.sqrt(-1) -- nan or ValueError?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]