Académique Documents
Professionnel Documents
Culture Documents
bmm
Table of Contents
1.1 Overview
is an object.
When we say age = 25, we are assigning a reference called 'age' to the
object 25. So the type is tied to the object. This makes variable
assignment, and manipulation the work of the interpreter, as opposed
to the manual assignment/management of such task by the programmer.
So, 25 is an object managed by Python. It has a type, a reference
count, and other metadata used by python.
Most importantly, there exist metadata used by the garbage collector.
1.3 References, copying
Y = copy.copy(X)
and to copy nested data use:
Y = copy.deepcopy(X)
1.4 Garbage collection