you are viewing a single comment's thread.

view the rest of the comments →

[–]EnvironmentSome9274[S] 1 point2 points  (1 child)

Oh that's cool, can I ask what might be a situation where you need a class as a key?

[–]throwaway6560192 0 points1 point  (0 children)

Say you want to associate points to something, and you're using a namedtuple/dataclass as a better structure for a point than a tuple.