I was going through this answer on Stack Overflow. I came to know about existence of OrderedSet
in Python. I would like to know how it is implemented internally. Is it similar to hash table implementation of sets?
Also, what is the time complexity of some of the common operations like insert, delete, find, etc.?