Why would I get a TypeEror?

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Fri Jan 14 16:53:03 EST 2005


It's me wrote:
> Say again???
> 
> "Reinhold Birkenfeld" <reinhold-birkenfeld-nospam at wolke7.net> wrote in
> message news:34ql1vF4dqd9pU1 at individual.net...
>> 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

Say what again?

Reinhold

PS: Please do not produce top-posting!



More information about the Python-list mailing list