|
|
|
|
|
by ZeroCool2u
805 days ago
|
|
"- Python's dict is a fast unordered hashmap. However, if you need order-aware operations like C++'s std::map::lower_bound(), you're out of luck; Python's standard library doesn't have a tree implementation." I'm fairly certain that in Python 3.7 and later standard library dictionaries are now ordered by default. |
|
This might or might not be what you want/expect...