[Info] PEP 308 accepted - new conditional expressions

Paul Rubin http
Fri Sep 30 16:32:43 CEST 2005


Richie Hindle <rjh at 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.



More information about the Python-list mailing list