News for hackers. Stuff that matters.
Re:Python 3.7: Introducing Data Classes by talltimtom on Wednesday April 18, 2018 @12:21PM (#16868604)
Anything hashable can be a dict key, so if you have some mapping between one thing that’s hashable and other things, you can use a dict directly rather than having to come up with an index and keep track of that association.

There are no comments on this comment yet.