Loop-and-a-half (Re: Curious assignment behaviour)

Tim Peters tim at zope.com
Fri Oct 12 19:01:38 EDT 2001


[Michael Chermside, on a conditional expression]
> ...
> As before, if anyone else feels strongly that they'd like to contribute
> (other than the excellent comments several folks already made), they
> should email me.

If people sign off on taking "then" as a new keyword, I think the chances
are good that we could get

    x = if e1 then e2 else e3

into 2.2b1.  That's the only obvious spelling, hence the only truly Pythonic
way to spell it.  Other languages spelling it that way range from Algol-60
(Guido's first intense language affair) to Haskell.

> hoping-that-less-speed-and-more-thinking-leads-to-a-better-design-
> ly yours,

less-thinking-will-get-there-faster<wink>-ly y'rs  - tim





More information about the Python-list mailing list