Erik Bernoth <erik.bernoth <at> googlemail.com> writes:
> 
> Isn't it strange, that this code runs (in a lazy language) for eternity?

Python is a not a lazy language.
`and` and `or` are particular, they are language constructs (*), not operators,
that's why they can decide whether or not to evaluate their second term. It's a
feature, but this feature is not general to Python.

(*) by this I mean they have similar status as, for example, `if` and `else`


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to