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

It does produce a new list/dict, etc. That's what you want to avoid side effects in many cases. Modifying is actually an exception. Handy to have, but not common. Even numpy arrays recreate everything every time.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: