På 14. jan 2005 kl. 22:58 skrev Steven Bethard:

(Any mac users? How do I fix this to appear in Norwegian? =)

Note that if you're not comfortable with short-circuiting behavior, you can also code this using lazy evaluation:

(lambda: 1/x, lambda: 1.0e99)[x==0]()

.. and people wonder why so many Python people want to get rid of Lambda =)


--
Stian Søiland               You can't say civilization don't
Trondheim, Norway           advance, however, for in every war
http://www.soiland.no/      they kill you in a new way. [Rogers]
                     =/\=

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

Reply via email to