Hi,

> Python should raise a RuntimeError exception with a list as with a set.

It *does*, for a list.

But in Python 3, with [], you do not get a list, but an iterator with a 
list-like API ;). It wraps a list which you add to, but __next__ will yield the 
next item if there is one.

-nik

Reply via email to