Re: [Info] PEP 308 accepted - new conditional expressions
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: [Info] PEP 308 accepted - new conditional expressions

From: Paul Rubin <//phr.cx@NOSPAM.invalid>
Date: Fri Sep 30 2005 - 16:32:43 CEST

Richie Hindle <rjh@cyberscience.com> writes:
> Yes. From Guido's announcement at
> http://mail.python.org/pipermail/python-dev/2005-September/056846.html:
> > The syntax will be
> > A if C else B

Wow, I thought this was a prank at first. Congratulations to Guido.
I think the introduction of list and sequence comprehensions made the
absence of a conditional construct felt even more strongly than
before, for those of us who program in this style.
Received on Sat Oct 15 04:00:18 2005