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

I went through my code and discovered that I seldom copy lists. I do often make selections from lists in a new list, i.e:

    b = [x for x in a if somecondition(x)]


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

Search: