answered 8 years ago
That's how python works. You can use
q=copy(p)
or another popular idiom in python is to take a "slice" of a list, which is a copy, that happens to cover the whole list:
q=p[:]