3 ms·
Before Python grew a set type, it was common to implement them in a similar way, i.e. as a dict with some kind of default value (0, 1, None, etc).
by zephyrfalcon 8y ago
Before Python grew a set type, it was common to implement them in a similar way, i.e. as a dict with some kind of default value (0, 1, None, etc).
- kevin_thibedeau 8y agoPython sets are internally just a dict hash table for the keys with no associated values.