Loop-and-a-half (Re: Curious assignment behaviour)
Joal Heagney
s713221 at student.gu.edu.au
Sat Oct 13 22:11:09 EDT 2001
Tim Peters wrote:
> 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.
> less-thinking-will-get-there-faster<wink>-ly y'rs - tim
Well I just did another grep -r "then" *.py on /usr/lib/python2.1, and I
couldn't find any use of "then" outside of comments.
--
Joal Heagney is: _____ _____
/\ _ __ __ _ | | _ ___ |
/__\|\ || ||__ |\ || |___|/_\|___] |
/ \ \_||__ ||___| \_|! | | \ \ !
More information about the Python-list
mailing list