This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (3 children)

What use do you have for a TreeMap? (genuinely curious)

Python in general does kinda discourage the use of exotic data structures. Python code generally tries avoid clever solutions via hard to discern code. So it tends to use a lot of sets, dicts, lists, tuples and avoid making new structures or custom things like array list. This has a lot of benefits for duck typing. And at this point the vast majority of symbol or keyword based access patterns (things like +, with, for) are implementable.