[Python-ideas] Null coalescing operator

Ralph Broenink ralph at ralphbroenink.net
Sat Sep 10 03:12:22 EDT 2016


It is PEP 505.
I agree we should resume the discussion on this PEP though (for 3.7), I'm
not completely sure why it stalled.

Ralph

On Sat, 10 Sep 2016, 02:50 Steven D'Aprano, <steve at pearwood.info> wrote:

> On Fri, Sep 09, 2016 at 10:01:44PM +0200, Arek Bulski wrote:
> > Sometimes I find myself in need of this nice operator that I used back in
> > the days when I was programming in .NET, essentially an expression
> >
> > >>> expr ?? instead
> >
> > should return expr when it `is not None` and `instead` otherwise.
>
>
> As Zach and MRAB mention, this was discussed last year. If I recall
> correctly, the discussion fizzled out without a solid conclusion. I
> think there's a PEP -- if not, there should be.
>
> I would be interested in revisiting this idea, but 3.6 feature freeze is
> only a day or two away and I won't have time to discuss this before
> then. So let's please drop this discussion until the 3.6 beta is
> released.
>
>
> --
> Steve
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160910/2b13ff58/attachment-0001.html>


More information about the Python-ideas mailing list