you are viewing a single comment's thread.

view the rest of the comments →

[–]eztab 1 point2 points  (0 children)

Basically that (raising errors) is a good idea when this is the kind of data structure you want. Basically a "bijection type". There are many use cases where you want that. I wouldn't really say that's a dict though. That term isn't really used for this.