Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
np_tedious
on April 21, 2019
|
parent
|
context
|
favorite
| on:
Python overtakes JavaScript as most questioned lan...
This is definitely the proximate reason.
The reason for that choice is because the object is mutable.
fiddlerwoaroof
on April 21, 2019
[–]
Sure, 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
The reason for that choice is because the object is mutable.