Is there a structure in Python similar to C++ STL map?

Viewed 26789

Is there a structure in Python which supports similar operations to C++ STL map and complexity of operations correspond to C++ STL map?

7 Answers

use this : from sortedcontainers import SortedDict

don't use this: from collections import OrderedDict

Related