In [1]:
a = array([1,2,3,4])
b = a
b[2] = 9
print a


[1 2 9 4]

In [2]:
a = list([1,2,3])
b = a
b[2] = 9
print a


[1, 2, 9]

In [3]:
a = 1
b = a
b = 9
print a


1

In [8]:
a = dict((('1', 1), ('2',2), ('3',3)))
b = a
b['2'] = 9
print a


{'1': 1, '3': 3, '2': 9}

In [9]:
import copy

In [10]:
a = array([1,2,3,4])
b = copy.copy(a)
b[2] = 9
print a


[1 2 3 4]

In [11]:
a = array([1,2,3,4])
b = copy.deepcopy(a)
b[2] = 9
print a


[1 2 3 4]