Data structures contain pointers in Python

Опубликовано: 30 Сентябрь 2024
на канале: Python Morsels
321
26

Data structures, like variables, contain references to objects, rather than the objects themselves.

Article at https://pym.dev/data-structures-conta...

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

00:00 Referencing the same object in multiple places
00:56 Data structures store references, not objects
02:09 Avoid referencing the same mutable object
02:33 An ouroboros: A list that contains itself
03:36 Python's data structures contain pointers to objects