It's me wrote: > Sorry if my question was a little "lazy" and yes, I was asking about the > "lazy evaluation". :=) > > I am surprised about this (and this can be dangerous, I guess). > > If this is true, I would run into trouble real quick if I do a: > > (1/x,1.0e99)[x==0] > > and that's not good. > > Something to keep in mind. :-(
Lazy evaluation: use the (x==0 and 1e99 or 1/x) form! Reinhold -- http://mail.python.org/mailman/listinfo/python-list