[Python-ideas] Add orderedset as set(iterable, *, ordered=False) and similarly for frozenset. (original) (raw)

Sturla Molden sturla.molden at gmail.com
Sun Feb 8 17:05:49 CET 2015


Andrew Barnert <abarnert at yahoo.com.dmarc.invalid> wrote:

(There's a reason that Java, as well as C++ and other languages, provides sets and maps based on both hash tables and sorted logarithmic structures--because they're not interchangeable.)

Yes. And Python unfortunately only provides them as hash tables.

Sturla



More information about the Python-ideas mailing list