Comment on Python: copying a list the right wayComments−Luyt14yI 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)]
Comments
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: