Assignment vs Mutation in Python

Publié le: 18 mai 2024
sur la chaîne: Python Morsels
397
23

In Python, "change" can mean two different things. Assignment changes which object a variable points to. Mutation, changes the object itself.

Article at https://pym.dev/assignment-versus-mut...

More #Python screencasts at https://pym.dev/screencasts/

00:00 Variables in Python are pointers
00:27 Mutating a list
01:07 Mutation
01:35 Assignment
02:19 Assignment vs mutation
03:03 Changing variables and changing objects


Sur cette page du site, vous pouvez voir la vidéo en ligne Assignment vs Mutation in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Python Morsels 18 mai 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 397 fois et il a aimé 23 téléspectateurs. Bon visionnage!