Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: