What are hashable objects in Python

Veröffentlicht am: 09 Oktober 2023
auf dem Kanal: Python Morsels
957
39

Sets and dictionaries are powered by hashability. And hashable objects tend to be immutable.

https://pym.dev/what-are-hashable-obj...

Find more Python screencasts at https://pym.dev/screencasts/

00:00 Sets items must be hashable
00:13 Dictionary keys must be hashable
00:24 Hashability makes dictionaries and sets fast
01:09 Every hashable object has a semi-unique hash value
01:57 Hashable objects are often immutable
02:10 Hashability is linked to equality
02:38 An object's hash value should never change
03:04 Summary


Auf dieser Seite können Sie das Online-Video What are hashable objects in Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Python Morsels 09 Oktober 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 957 Mal angesehen und es wurde von 39 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!