[Info] PEP 308 accepted - new conditional expressions

William Park opengeometry at yahoo.ca
Tue Oct 11 23:39:54 EDT 2005


Paul Rubin <http://phr.cx@nospam.invalid> wrote:
> Reinhold Birkenfeld <reinhold-birkenfeld-nospam at wolke7.net> writes:
> > For a conditional, syntax must be found, and the tradition of Python
> > design is not to use punctuation for something that can be solved
> > with keywords.
> 
> Yeah, "if C then A else B" is a ancient tradition stretching from
> Algol-60 to OCAML, and who knows what all else in between.  I'm not
> sure what Guido saw in the "A if C else B" syntax but it's not a big
> deal.

Perhaps, he's preparing Python for the eventual absorption into Perl7.

-- 
William Park <opengeometry at yahoo.ca>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
	   http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
	  http://freshmeat.net/projects/bashdiff/



More information about the Python-list mailing list