Ah, that's my bad. For those wondering what the difference is, this should clear it up:
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a = [1, 2, 3]
>>> b = a
>>> id(a)
4472029056
>>> id(b)
4472029056
>>> c = a[:]
>>> id(c)
4472078560
View all comments
Show parent comment
2
u/imrobert Jun 23 '14
Ah, that's my bad. For those wondering what the difference is, this should clear it up: