Assignment vs Mutation in Python

Publicado em: 18 Maio 2024
no canal de: 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


Nesta página do site você pode assistir ao vídeo on-line Assignment vs Mutation in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Python Morsels 18 Maio 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 397 vezes e gostou 23 espectadores. Boa visualização!