<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Or:<br>
x = a orelse b # Visual Basic has a short-circuiting
OrElse operator for boolean operands<br>
x = a orifNone b<br>
<br>
<br>
<div class="moz-cite-prefix">On 30/09/2015 01:39, Ryan Gonzalez
wrote:<br>
</div>
<blockquote
cite="mid:D91E3BCA-A368-4F9E-8C5A-11ABE744F391@gmail.com"
type="cite">What about 'otherwise'?<br>
<br>
x = a otherwise b<br>
<br>
<br>
<div class="gmail_quote">On September 29, 2015 6:57:39 PM CDT,
Andrew Barnert via Python-ideas <a class="moz-txt-link-rfc2396E" href="mailto:python-ideas@python.org"><python-ideas@python.org></a>
wrote:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<pre class="k9mail">LOn Sep 29, 2015, at 16:27, Greg Ewing <a class="moz-txt-link-rfc2396E" href="mailto:greg.ewing@canterbury.ac.nz"><greg.ewing@canterbury.ac.nz></a> wrote:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">
Emile van Sebille wrote:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> x = foo nor 'foo was None'
</blockquote>
Cute, but unfortunately it conflicts with established
usage of the word 'nor', which would suggest that
a nor b == not (a or b).
</blockquote>
Agreed. If this is going to be a keyword rather than a symbol, it really has to read like English, or at least like abbreviated English, with the right meaning--something like "foo, falling back to 'foo was None' if needed". Something that reads like English with a completely different meaning is a bad idea.
<hr>
Python-ideas mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-ideas@python.org">Python-ideas@python.org</a>
<a moz-do-not-send="true" href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a>
Code of Conduct: <a moz-do-not-send="true" href="http://python.org/psf/codeofconduct">http://python.org/psf/codeofconduct</a>/
</pre></blockquote></div>
--
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.
CURRENTLY LISTENING TO: Vermilion Fire (Final Fantasy Type-0)
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
Python-ideas mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-ideas@python.org">Python-ideas@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a>
Code of Conduct: <a class="moz-txt-link-freetext" href="http://python.org/psf/codeofconduct/">http://python.org/psf/codeofconduct/</a></pre>
</blockquote>
</body></html>