sortedmap

Why are there no sorted containers in Python's standard libraries?

Why are there no sorted containers in Python's standard libraries? Question: Is there a Python design decision (PEP) that precludes a sorted container from being added to Python? (OrderedDict is not a sorted container since it is ordered by insertion order.) Asked By: Neil G || Source Answers: There is a heapq in the standard …

Total answers: 6