VanceE <[email protected]> wrote: > for x in []: > assert type(x) == type(()) > > I expected an AssertionError but get no errors at all. > Any explaination?
[] is an empty sequence, so your loop executes exactly 0 times. :)
for x in [None]:
assert ...
w.
--
http://mail.python.org/mailman/listinfo/python-list
