[Python-Dev] A cute new way to get an infinite loop (original) (raw)

Batista, Facundo FBatista at uniFON.com.ar
Thu Sep 23 17:58:39 CEST 2004


[Raymond Hettinger]

#- In comparison, the classic form doesn't seem as magical: #- #- x = [1] #- for y in x: #- x.append(-y) #-

The eternal inherent risk of modify the iterable being iterated. Who didn't ever fall in this?

. Facundo



More information about the Python-Dev mailing list