<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <p>As previously requested: please take this discussion to
      python-ideas.  If you reply, remove python-dev from the To: and
      Cc: lists, and add python-ideas instead.  This speculative
      discussion was never appropriate for python-dev.<br>
    </p>
    <p><br>
    </p>
    <p><i>/arry</i><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/28/2017 03:11 PM, Rob Cliffe
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9c236fb3-3aaa-605b-a8c3-3ec9e53b5e3b@btinternet.com">
      <br>
      <br>
      On 28/07/2017 20:57, MRAB wrote:
      <br>
      <blockquote type="cite">On 2017-07-28 10:17, Michel Desmoulin
        wrote:
        <br>
        <blockquote type="cite">elif break and elif None: I'd like that
          very much. It's weird a break
          <br>
          the semantic of break and None, but it's in such a dark corner
          of Python
          <br>
          anyway I don't bother.
          <br>
          <br>
        </blockquote>
        Surely it would not be "elif break", but "elif not break"?
        <br>
      </blockquote>
      To me, anything beginning with "else" or "elif" suggests an
      alternative branch, not an additional one (YMMV):
      <br>
          if condition:
      <br>
              do_something
      <br>
          else:
      <br>
              do_something_completely_different
      <br>
      <br>
      Therefore I would find "if not break" or even "and if not break"
      more intuitive.
      <br>
      Best wishes
      <br>
      Rob Cliffe
      <br>
      <br>
      <blockquote type="cite">
        <br>
        <blockquote type="cite">Le 27/07/2017 à 21:19, MRAB a écrit :
          <br>
          <blockquote type="cite">On 2017-07-27 03:34, Mike Miller
            wrote:
            <br>
            <blockquote type="cite">
              <br>
              <br>
              On 2017-07-26 16:36, MRAB wrote:
              <br>
              <blockquote type="cite">"nobreak" would introduce a new
                keyword, but "not break" wouldn't.
                <br>
              </blockquote>
              <br>
              Whenever I've used the for-else, I've put a # no-break
              right next to
              <br>
              it, to
              <br>
              remind myself as much as anyone else.
              <br>
              <br>
              for...: not break: is the best alternative I've yet seen,
              congrats. Perhaps in
              <br>
              Python 5 it can be enabled, with for-else: used instead
              for empty
              <br>
              iterables, as
              <br>
              that's what I expected the first few dozen times.
              <br>
              <br>
            </blockquote>
            For empty iterables, how about "elif None:"? :-)
            <br>
          </blockquote>
        </blockquote>
        _______________________________________________
        <br>
        Python-Dev mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a>
        <br>
        <a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a>
        <br>
        Unsubscribe:
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/options/python-dev/rob.cliffe%40btinternet.com">https://mail.python.org/mailman/options/python-dev/rob.cliffe%40btinternet.com</a><br>
        <br>
        <br>
        ---
        <br>
        This email has been checked for viruses by AVG.
        <br>
        <a class="moz-txt-link-freetext" href="http://www.avg.com">http://www.avg.com</a>
        <br>
      </blockquote>
      <br>
      _______________________________________________
      <br>
      Python-Dev mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a>
      <br>
      Unsubscribe:
      <a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/options/python-dev/larry%40hastings.org">https://mail.python.org/mailman/options/python-dev/larry%40hastings.org</a>
      <br>
    </blockquote>
    <br>
  </body>
</html>