List as FIFO in for loop

malkarouri malkarouri at gmail.com
Sat Mar 8 17:20:40 EST 2008


On Mar 8, 4:44 pm, "Martin v. Löwis" <mar... at v.loewis.de> wrote:
...
> Notice that the language specification *deliberately* does not
> distinguish between deletion of earlier and later items, but
> makes modification of the sequence undefined behavior to allow
> alternative implementations. E.g. an implementation that would
> crash, erase your hard disk, or set your house in flames if you
> confront it with your code still might be a conforming Python
> implementation.

Really appreciated, Martin. It was exactly the *deliberately* part I
am interested in. Settles it for me.

Thanks,

Muhammad Alkarouri



More information about the Python-list mailing list