[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
- Previous message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects floatobject.c, 2.132, 2.133
- Next message: [Python-Dev] Re: A cute new way to get an infinite loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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
- Previous message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects floatobject.c, 2.132, 2.133
- Next message: [Python-Dev] Re: A cute new way to get an infinite loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]