[Python-ideas] Null coalescing operators

Sven R. Kunze srkunze at mail.de
Sat Sep 19 01:19:23 CEST 2015

On 19.09.2015 01:02, MRAB wrote:
> To me, the choice _is_ obvious: "obj?[idx]". After all, that's more in
> keeping with "obj?.attr" and "func?()".
> If you had "obj?[idx]", then shouldn't it also be "obj.?attr" and
> "func(?)"?

I agree with that.

More information about the Python-ideas mailing list