A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-September/056562.html below:

[Python-Dev] Adding a conditional expression in Py3.0

[Python-Dev] Adding a conditional expression in Py3.0 [Python-Dev] Adding a conditional expression in Py3.0Phillip J. Eby pje at telecommunity.com
Tue Sep 20 21:38:50 CEST 2005
At 12:17 PM 9/20/2005 -0700, Guido van Rossum wrote:
>I think I'd prefer (if <expr> then <expr> else <expre>) i.e. no
>colons. None of the other  expression forms (list comprehensions and
>generator expressions) involving statement keywords use colons.

+1, despite the fact that we seem on a slippery slope towards becoming a 
kind of infix Lisp.  ;)  Between (yield x), (x for x in y), and now (if x 
then y else z), it seems that parentheses are all the rage now. Will we get 
(try <expr> finally <expr>) next?  <0.5 wink>


> > *If* you want general community input, I would suggest a runoff ballot with
> > those four choices (and a summary of pros and cons of each), or fewer if
> > you see any as unacceptible.
>
>If there's one thing I've learned from the PEP 308 vote, it is that
>votes for language don't work. I prefer some discussion on Python-dev
>after which I pick one.

Also +1.  :)

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4