When using * to create list like:
>>> ll = [None] * 3
>>> ll
[None, None, None]
>>> ll[0] = 2
>>> ll
[2, None, None]
And then using two dimension,
>>> ll2 = 3 *[ 3 * [None]]
>>> ll2
[[None, None, None], [None, None, None], [None, None, None]]
>>> ll2[0][0] = 2
>>> ll2
[[2, None, None], [2, None, None], [2, None, None]]
So, create list by operator *, if the element is object like list. It doesn't create new object, just use the referenced object.
Are there any other operators like this in Python?
Edit:
Sorry, My representation is bad. What I want to know is, are there any other operators using like "*" will not create multiple reference.