3 ms·
This is definitely the proximate reason. The reason for that choice is because the object is mutable.
by np_tedious 8y ago
This is definitely the proximate reason.
The reason for that choice is because the object is mutable.
- fiddlerwoaroof 8y agoSure, but as others have mentioned, you can make your own choice by subclassing dict and defining your own hash function, as long as that function is defined in a way that follows the appropriate rules.