<p dir="ltr">This exists and is spelled 'not' in Python :-)</p>
<div class="gmail_quote">On May 17, 2015 11:16 AM, "Charles Hixson" <<a href="mailto:charleshixsn@earthlink.net">charleshixsn@earthlink.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm envisioning "unless" as a synonym for "if not(...):" currently I use<br>
<br>
if .... :<br>
pass<br>
else:<br>
...<br>
<br>
which works.<br>
<br>
N.B.: This isn't extremely important as there are already two ways to accomplish the same purpose, but it would be useful, seems easy to implement, and is already used by many other languages. The advantage is that when the condition is long it simplifies understanding.<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div>