<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 29, 2015 at 8:24 PM, Alexander Belopolsky <span dir="ltr"><<a href="mailto:alexander.belopolsky@gmail.com" target="_blank">alexander.belopolsky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">... suggest repurposing the rarely used xor operator: ^ and make x ^ y return the non-None of x and y or None if both are None.</blockquote></div><div class="gmail_extra"><br></div>.. and x if both are not None to allow x ^= y to work as expected.<br><br></div></div>