Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
RK
on Nov 6, 2011
|
parent
|
context
|
favorite
| on:
Python: copying a list the right way
The only caveat here is if you are copying a list of lists, you have to use copy.deepcopy() if you want the lists inside your lists to actually be copied.
This caught me bad once. I wish it were on the page linked in the post (and others like it).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This caught me bad once. I wish it were on the page linked in the post (and others like it).