<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">On Tue, Jul 31, 2018, 1:47 PM Steven D'Aprano <<a href="mailto:steve@pearwood.info">steve@pearwood.info</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes it is. Rhodri is correct, although I admit that I hadn't realised <br>
this point myself until he pointed it out. (That is why until now I've <br>
been writing examples like "spam?.eggs?.cheese?.aardvark" which is redundant.)<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Again, one of the most vocal advocates of the PEP gets the semantics wrong!</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">`spam?.eggs?.cheese?.aardvark` is NOT redundant for `</span><span style="font-family:sans-serif">spam?.eggs.cheese.aardvark</span><span style="font-family:sans-serif">`. The two expressions simply do different things, but in a way guaranteed to assure that also everyone gets the actual behaviors wrong.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Hint, run this before each expression:</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif"> spam.eggs.cheese = None</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div></div>