spam = "woo"
eggs = spam
spam = "string"
print eggs
# prints woo
However for array, it is different:
import numpy
# The coefficients for the Taylor polynomial for exp(x)
Taylor_coefficients = numpy.array(
[1.0, 0.5, 0.1666, 0.04164, 0.0083, 0.0014])
coeff = Taylor_coefficients
coeff[1] = 0
print Taylor_coefficients[:2]
# prints [ 1. 0.]
What happens here, and which other common datatypes than array does this apply to?