[Python-ideas] [Python-Dev] What's the status of PEP 505: None-aware operators?

Elazar elazarg at gmail.com
Wed Nov 29 05:39:42 EST 2017

בתאריך יום ד׳, 29 בנוב׳ 2017, 12:29, מאת Lele Gaifax ‏<lele at metapensiero.it

> Kirill Balunov <kirillbalunov at gmail.com> writes:
> > Since the proposed semantics is more similar to the idea of "or", may be
> it
> > is better to consider something like:
> >
> > timeout then local_timeout then global_timeout
> >
> > I do not know how much this is a frequent case to be worthy of a keyword.
> That sounds awkward... what about
>   timeout else local_timeout else global_timeout
> instead?

I think then and else can be ruled out since they can be very confusing
when used in a conditinal statement or a comprehension.

x = a if x else y else b  # wait. what?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20171129/d3d875ea/attachment-0001.html>

More information about the Python-ideas mailing list