Comment on Python: copying a list the right wayComments−zobzu14yI'm always wondering why people have to write 3 pages instead of getting to the point. You know like, just a list.- a = b <= doesn't copy! its just a reference- a = list(b) <= works!- <other methods if you like>
Comments
I'm always wondering why people have to write 3 pages instead of getting to the point. You know like, just a list.
- a = b <= doesn't copy! its just a reference
- a = list(b) <= works!
- <other methods if you like>