Re: PEP 701 – Syntactic formalization of f- strings

Rob Cliffe via Python-Dev <[email protected]> Mon, 19 Dec 2022 18:52:59 +0000
Newsgroups gmane.comp.python.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============5634870851806830962==
Content-Type: multipart/alternative;
 boundary="------------0xn0VKaCTL2CSqPHLkoDY1sI"
Content-Language: en-GB

This is a multi-part message in MIME format.
--------------0xn0VKaCTL2CSqPHLkoDY1sI
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Great stuff! 😁
Rob Cliffe

On 19/12/2022 17:59, Pablo Galindo Salgado wrote:
>
> Hi everyone,
>
> I am very excited to share with you a PEP thatBatuhan Taskaya, 
> Lysandros Nikolaou and myself have been working on recently:PEP 701 - 
> PEP 701 – Syntactic formalization of f-strings 
> <https://peps.python.org/pep-0701/>.
>
> We believe this will be a great improvement in both the 
> maintainability of CPython and the usability of f-strings.
>
> We look forward to hearing what you think about this and to get your 
> feedback!
>
> *Here is a TLDR for your convenience:*
>
>   * The PEP proposes a formalized grammar for f-strings in Python by
>     adding f-strings directly into the Grammar instead of using a
>     two-pass hand-written parser.
>   * This would lift some existing restrictions for f-strings that (we
>     believe) will improve the user experience with f-strings.
>   * Other benefits include:
>       o Reduced maintenance costs for f-string parsing code as well as
>         improved usability for users and library developers.
>       o Better error messages involving f-strings by leveraging the
>         PEG parser machinery.
>       o The proposed changes would improve the overall consistency of
>         the language and provide a way for alternative implementations
>         to accurately implement f-strings.
>
> *** IMPORTANT: direct all discussions to the discussion thread on 
> discourse: 
> https://discuss.python.org/t/pep-701-syntactic-formalization-of-f-strings/22046 
> ***
>
> Thanks a lot, everyone for your time!
>
> Regards from rainy London,
> Pablo Galindo Salgado
>
> _______________________________________________
> Python-Dev mailing list [email protected]
> To unsubscribe send an email [email protected]
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived athttps://mail.python.org/archives/list/[email protected]/message/IU4O3GFGWJ4FWXXC2TVB4CNPZI3KFBQM/
> Code of Conduct:http://python.org/psf/codeofconduct/

--------------0xn0VKaCTL2CSqPHLkoDY1sI
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Great stuff! 😁<br>
    Rob Cliffe<br>
    <br>
    <div class="moz-cite-prefix">On 19/12/2022 17:59, Pablo Galindo
      Salgado wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:[email protected]%3E%20(added%20by%[email protected])">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default">
          <p style="margin-top:0px"><font
              style="background-color:rgb(255,255,255)" face="arial,
              sans-serif" color="#000000">Hi everyone,</font></p>
          <p style="caret-color: rgb(238, 238, 238);"><font face="arial,
              sans-serif"><font
                style="background-color:rgb(255,255,255)"
                color="#000000">I am very excited to share with you a
                PEP that<span class="gmail-Apple-converted-space"> </span></font><span style="color:rgb(0,0,0);white-space:pre-wrap">Batuhan Taskaya, </span><span style="color:rgb(0,0,0);white-space:pre-wrap">Lysandros Nikolaou </span><font
                color="#000000">and myself have been working on
                recently:<span class="gmail-Apple-converted-space"> </span><a
                  href="https://peps.python.org/pep-0701/"
                  style="text-decoration:none" moz-do-not-send="true">PEP
                  701 - PEP 701 – Syntactic formalization of f-strings</a>. </font></font></p>
          <p style="caret-color: rgb(238, 238, 238);"><font face="arial,
              sans-serif"><font color="#000000">We believe this will be
                a great improvement in both the maintainability of
                CPython and the usability of f-strings.</font></font></p>
          <p style="caret-color: rgb(238, 238, 238);"><font
              style="background-color:rgb(255,255,255)" face="arial,
              sans-serif" color="#000000">We look forward to hearing
              what you think about this and to get your feedback!</font></p>
          <p style="caret-color: rgb(238, 238, 238);"><b
              style="color:rgb(0,0,0);font-family:arial,sans-serif">Here
              is a TLDR for your convenience:</b><br>
          </p>
          <ul style="margin:1em 0px 1em 1.25em;padding:0px 0px 0px
            1.25em;clear:both">
            <li><font face="arial, sans-serif" color="#000000">The PEP
                proposes a formalized grammar for f-strings in Python by
                adding f-strings directly into the Grammar instead of
                using a two-pass hand-written parser.</font></li>
            <li><font face="arial, sans-serif" color="#000000">This
                would lift some existing restrictions for f-strings that
                (we believe) will improve the user experience with
                f-strings.</font></li>
            <li><font face="arial, sans-serif" color="#000000">Other
                benefits include:</font>
              <ul style="margin:0px;padding:0px 0px 0px
                1.25em;clear:both">
                <li><font face="arial, sans-serif" color="#000000">Reduced
                    maintenance costs for f-string parsing code as well
                    as improved usability for users and library
                    developers.</font></li>
                <li><font face="arial, sans-serif" color="#000000">Better
                    error messages involving f-strings by leveraging the
                    PEG parser machinery.</font></li>
                <li><font face="arial, sans-serif" color="#000000">The
                    proposed changes would improve the overall
                    consistency of the language and provide a way for
                    alternative implementations to accurately implement
                    f-strings.</font></li>
              </ul>
            </li>
          </ul>
          <p style="caret-color: rgb(238, 238, 238);"><b><font
                style="background-color:rgb(255,255,255)" face="arial,
                sans-serif" color="#000000">** IMPORTANT: direct all
                discussions to the discussion thread on discourse: </font><a
href="https://discuss.python.org/t/pep-701-syntactic-formalization-of-f-strings/22046"
                moz-do-not-send="true" class="moz-txt-link-freetext">https://discuss.python.org/t/pep-701-syntactic-formalization-of-f-strings/22046</a>
              **</b></p>
          <p style="caret-color: rgb(238, 238, 238);"><font
              style="background-color:rgb(255,255,255)" face="arial,
              sans-serif" color="#000000">Thanks a lot, everyone for
              your time!</font></p>
          Regards from rainy London,</div>
        <div class="gmail_default">Pablo Galindo Salgado</div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Python-Dev mailing list -- <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
To unsubscribe send an email to <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman3/lists/python-dev.python.org/">https://mail.python.org/mailman3/lists/python-dev.python.org/</a>
Message archived at <a class="moz-txt-link-freetext" href="https://mail.python.org/archives/list/[email protected]/message/IU4O3GFGWJ4FWXXC2TVB4CNPZI3KFBQM/">https://mail.python.org/archives/list/[email protected]/message/IU4O3GFGWJ4FWXXC2TVB4CNPZI3KFBQM/</a>
Code of Conduct: <a class="moz-txt-link-freetext" href="http://python.org/psf/codeofconduct/">http://python.org/psf/codeofconduct/</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------0xn0VKaCTL2CSqPHLkoDY1sI--

--===============5634870851806830962==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline