What are hashable objects in Python

Publié le: 09 octobre 2023
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne What are hashable objects in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Python Morsels 09 octobre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 957 fois et il a aimé 39 téléspectateurs. Bon visionnage!