[Python-ideas] Null coalescing operator

Eric Snow ericsnowcurrently at gmail.com
Fri Oct 28 10:13:28 EDT 2016


On Fri, Oct 28, 2016 at 7:13 AM, Barry Warsaw <barry at python.org> wrote:
> You could of course support exactly the same syntax being proposed as a
> language change, e.g.
>
>     from operator import attrgetter
>     r = attrgetter('b?.x?.z')
>
> and then you wouldn't even need the `coalesce` argument.

+1

-eric


More information about the Python-ideas mailing list