Aargh, I hate Google Groups with a vengeance. If people *have* to post from there, can they please change reply-to so that replies don't get messed up. Or is that not possible, and yet another way that GG is just broken? Paul
---------- Forwarded message ---------- From: Paul Moore <[email protected]> Date: 22 July 2018 at 12:05 Subject: Re: [Python-ideas] PEP 505: None-aware operators To: Grégory Lielens <[email protected]> Cc: python-ideas <[email protected]> On 22 July 2018 at 11:54, Grégory Lielens <[email protected]> wrote: > Except that the third possibility is not possible...if a is None, a[2] will > throw an exception... > For now at least ;-) Doh. True, I should have said "If a is not None and a[2] is not None, use a[2]". But my point about unintended behaviour if a[2] is None stands. And the wider point that these operators are hard to reason correctly about is probably emphasised by my mistake. Paul _______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
