CINXE.COM

Mailman 3 PEP 536 – Call for help and improvement - Python-ideas - python.org

<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="ROBOTS" content="INDEX, FOLLOW" /> <title>Mailman 3 PEP 536 – Call for help and improvement - Python-ideas - python.org </title> <meta name="author" content="" /> <meta name="dc.language" content="en" /> <link rel="shortcut icon" href="/static/hyperkitty/img/favicon.ico" /> <link rel="stylesheet" href="/static/hyperkitty/libs/jquery/smoothness/jquery-ui-1.13.1.min.css" type="text/css" media="all" /> <link rel="stylesheet" href="/static/hyperkitty/libs/fonts/font-awesome/css/font-awesome.min.css" type="text/css" media="all" /> <link rel="stylesheet" href="/static/CACHE/css/output.07067ad77a36.css" type="text/css" media="all"><link rel="stylesheet" href="/static/CACHE/css/output.e68c4908b3de.css" type="text/css"><link rel="stylesheet" href="/static/CACHE/css/output.3e1fcd906323.css" type="text/css" media="all"> </head> <body> <nav class="navbar sticky-top navbar-expand-md mb-2" id="navbar-main"> <div class="container-xxl"> <div class="navbar-header"> <!--part of navbar that's always present--> <button type="button" class="navbar-toggler collapsed" data-bs-toggle="collapse" data-bs-target=".navbar-collapse"> <span class="fa fa-bars"></span> </button> <a class="navbar-brand" href="/archives/">Mailman 3 python.org</a> </div> <!-- /navbar-header --> <div class="d-flex"> <div class="auth dropdown d-md-none"> </div> <a href="/accounts/login/?next=/archives/list/python-ideas%40python.org/thread/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/" class="nav-link d-md-none"> <span class="fa fa-sign-in"></span> Sign In </a> <a href="/accounts/signup/?next=/archives/list/python-ideas%40python.org/thread/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/" class="nav-link d-md-none"> <span class="fa fa-user-plus"></span> Sign Up </a> </div> <div class="navbar-collapse collapse justify-content-end"> <!--part of navbar that's collapsed on small screens--> <!-- show dropdown for smaller viewports b/c login name/email may be too long --> <!-- only show this extra button/dropdown if we're in small screen sizes --> <a href="/mailman3/lists/python-ideas.python.org/" class="nav-link"> <span class="fa fa-cog"></span> Manage this list </a> <a href="/accounts/login/?next=/archives/list/python-ideas%40python.org/thread/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/" class="nav-link d-none d-md-block"> <span class="fa fa-sign-in"></span> Sign In </a> <a href="/accounts/signup/?next=/archives/list/python-ideas%40python.org/thread/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/" class="nav-link d-none d-md-block"> <span class="fa fa-user-plus"></span> Sign Up </a> <form name="search" method="get" action="/archives/search" class="navbar-form navbar-right my-2 my-lg-2 ms-2" role="search"> <input type="hidden" name="mlist" value="python-ideas@python.org" /> <div class="input-group"> <input name="q" type="text" class="form-control rounded-4 search" placeholder="Search this list" aria-label="Search this list" /> <button class="btn search-button" aria-label="Search"><span class="fa fa-search"></span></button> </div> </form> <!-- larger viewports --> <ul class="nav navbar-nav auth d-none d-md-flex"> </ul> </div> <!--/navbar-collapse --> </div><!-- /container for navbar --> </nav> <div class="modal fade" tabindex="-1" role="dialog" id="keyboard-shortcuts"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h4 class="modal-title">Keyboard Shortcuts</h4> </div> <div class="modal-body"> <h3>Thread View</h3> <ul> <li><code>j</code>: Next unread message </li> <li><code>k</code>: Previous unread message </li> <li><code>j a</code>: Jump to all threads <li><code>j l</code>: Jump to MailingList overview </ul> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal --> <div class="container-xxl" role="main"> <div class="row view-thread d-flex"> <!-- thread header: navigation (older/newer), thread title --> <div class="thread-header"> <div class="d-flex"> <div> <a id="next-thread" class="btn btn-secondary btn-sm " title="Re: [Python-ideas] New PyThread_tss_ C-API for CPython" href="/archives/list/python-ideas@python.org/thread/IFNANCNM6SYZYXVANEVT24TZVNLIOP52/"> <span class="fa fa-chevron-left"></span> <span class="d-none d-md-inline">newer</span> </a> <br /> <a href="/archives/list/python-ideas@python.org/thread/IFNANCNM6SYZYXVANEVT24TZVNLIOP52/" title="Re: [Python-ideas] New PyThread_tss_ C-API for CPython" class="thread-titles d-none d-md-block"> Re: [Python-ideas] New... </a> </div> <div class="flex-grow-1"> <h3>PEP 536 – Call for help and improvement</h3> </div> <div class="right"> <a id="prev-thread" class="btn btn-secondary btn-sm " title="Re: [Python-ideas] New PyThread_tss_ C-API for CPython" href="/archives/list/python-ideas@python.org/thread/QG5E6Y7R2MBWXI25EVTO4W3IU6OWVNOG/" > <span class="fa fa-chevron-right"></span> <span class="d-none d-md-inline">older</span> </a><br /> <a href="/archives/list/python-ideas@python.org/thread/QG5E6Y7R2MBWXI25EVTO4W3IU6OWVNOG/" title="Re: [Python-ideas] New PyThread_tss_ C-API for CPython" class="thread-titles d-none d-md-block"> Re: [Python-ideas] New... </a> </div> </div> </div> </div> <!-- /thread-header --> <div class="row"> <div class="col-sm-12 col-md-9"> <!-- main section, the email thread --> <div id="thread-content"> <!-- Start first email --> <div class="email email-first"> <div id="YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ" class="email-header"> <div class="gravatar-wrapper d-flex"> <div class="gravatar circle"> <img class="gravatar" src="https://secure.gravatar.com/avatar/da56018fec1036eb1e02305d09a0bce8.jpg?s=120&amp;d=mm&amp;r=g" width="120" height="120" alt="" /> </div> <div class="email-author d-flex"> <h2 class="name"> <a href="/archives/users/90134762624736535650012283444407142435/" title="See the profile for Philipp A." >Philipp A.</a> </h2> </div> </div> <div class="email-date right"> <span class="date"> Dec. 23, 2016 </span> <div class="time"> <span title="Sender's time: Dec. 23, 2016, 4:03 p.m.">4:03 p.m.</span> </div> </div> </div> <!-- /email-header: gravatar, author-info, date, peramlink, changed_subject --> <div class="email-body "> <p>Hi Python Ideas, And merry christmas! Once upon a time – in August this year – I started a (somewhat badly titled) thread about improving the f-string grammar: <a target="_blank" href="https://mail.python.org/pipermail/python-ideas/2016-August/041727.html">https://mail.python.org/pipermail/python-ideas/2016-August/041727.html</a> Luckily it resulted in an interim grammar change that invalidated a misleading property of the original grammar: To the rejoicing of syntax highlighters and humans everywhere, it’s no longer possible to escape syntactically relevant characters such as the f-string braces: f'\x7bvariable}' Now I created a PEP that makes f-strings work just like every other languages’ string interpolation; enabling arbitrary nesting of python expressions in the expression parts of f-strings: <a target="_blank" href="https://github.com/python/peps/blob/master/pep-0536.txt">https://github.com/python/peps/blob/master/pep-0536.txt</a> All I want for christmas is your help: Please tell me how to improve wording, structure, or clarity of my PEP’s message (ideally via PR to <a target="_blank" href="https://github.com/flying-sheep/peps">https://github.com/flying-sheep/peps</a>) I fear going forward I will also need guidance for the implementation part, as my only close-to-the-metal experiences are dabbling in C++, and the higher-level language Rust. Thank you and happy holidays! Philipp</p> </div> <div class="attachments"> <p class="attachments">Attachments:</p> <ul class="attachments-list list-unstyled"> <li><a href="/archives/list/python-ideas@python.org/message/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/attachment/2/attachment.htm">attachment.htm</a> (text/html &mdash; 1.5 KB) </li> </ul> </div> <div class="email-info"> <div class="likeform-wrapper right"> <div class="messagelink pull-right"> <button class="toggle-font btn btn-sm" title="Display in fixed font" data-bs-toggle="tooltip" data-placement="bottom"> <i class="fa fa-font"></i> </button> <a href="/archives/list/python-ideas@python.org/message/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/" title="Permalink for this message" data-bs-toggle="tooltip" data-placement="bottom"><i class="fa fa-link"></i></a> </div> <form method="post" class="likeform" action="/archives/list/python-ideas@python.org/message/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/vote"> <input type="hidden" name="csrfmiddlewaretoken" value="70NZ9nj4tqq2mNoJYaG0iNYBE7ZnPEzRcSuixp960sF39YP6w5PqkGWwiNWSXDVU"> <a class="youlike vote disabled" title="You must be logged-in to vote." href="#like" data-vote="1" aria-label="Like thread"> <i class="fa fa-thumbs-o-up"></i> 0 </a> <a class="youdislike vote disabled" title="You must be logged-in to vote." href="#dislike" data-vote="-1" aria-label="Dislike thread"> <i class="fa fa-thumbs-o-down"></i> 0 </a> </form> </div> <!-- Reply link --> <a class="reply reply-mailto" title="Reply" href="#"> <i class="fa fa-reply"></i> Reply </a> <!-- Attachments --> <!-- Reply form --> <div class="reply-form-unauthenticated"> <a class="btn btn-sm btn-primary" href="/accounts/login/?next=/archives/list/python-ideas%40python.org/thread/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/#"> Sign in to reply online </a> <a class="btn btn-sm btn-secondary reply-mailto" href="mailto:python-ideas@python.org?Subject=Re%3A%20%5BPython-ideas%5D%20PEP%20536%20%E2%80%93%20Call%20for%20help%20and%20improvement&amp;In-Reply-To=&lt;CAN8d9gnWortFubXCT2oTMWndoGsAuxQ71-4aD0Lpkw%3DvmCbvAQ%40mail.gmail.com&gt;" >Use email software</a></li> </div> </div> </div> <!-- End first email --> <p class="sort-mode"> <a href="/archives/list/python-ideas@python.org/thread/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/?sort=date" >Show replies by date</a> </p> <div class="anchor-link"> <a id="replies"></a> </div> <div class="replies"> <img alt="Loading..." class="ajaxloader" src="/static/hyperkitty/img/ajax-loader.gif" /> <noscript> <a href="/archives/list/python-ideas@python.org/thread/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/?noscript">Visit here for a non-javascript version of this page.</a> </noscript> </div> </div> </div> <div class="col-12 col-md-3"> <div class="anchor-link"> <a id="stats"></a> </div> <!-- right column --> <section id="thread-overview-info"> <!-- Start stats re: dates --> <div id="thread-date-info" class="row"> <div class="col"> <span class="days-num">2982</span> <div class="days-text"> Age (days ago) </div> </div> <div class="col"> <span class="days-num">2982</span> <div class="days-text"> Last active (days ago) </div> </div> </div> <!-- /Stats re: dates --> <p> <a href="/archives/list/python-ideas@python.org/" class="btn btn-outline-primary btn-sm"> List overview </a> </p> <a href="/archives/list/python-ideas@python.org/export/python-ideas@python.org-YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ.mbox.gz?thread=YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ" title="This thread in gzipped mbox format" class="btn btn-outline-primary"> <i class="fa fa-download"></i> Download</a> <p class="thread-overview-details"> <div> <i class="fa fa-fw fa-comment"></i> 0 comments </div> <div> <i class="fa fa-fw fa-user"></i> 1 participants </div> </p> <form id="fav_form" name="favorite" method="post" class="favorite" action="/archives/list/python-ideas@python.org/thread/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/favorite"> <input type="hidden" name="csrfmiddlewaretoken" value="70NZ9nj4tqq2mNoJYaG0iNYBE7ZnPEzRcSuixp960sF39YP6w5PqkGWwiNWSXDVU"> <input type="hidden" name="action" value="add" /> <p> <a href="#AddFav" class="notsaved disabled" title="You must be logged-in to have favorites."> <i class="fa fa-fw fa-star"></i>Add to favorites</a> <a href="#RmFav" class="saved"> <i class="fa fa-fw fa-star"></i>Remove from favorites</a> </p> </form> <div id="tags"> <h3 id="tag-title">tags </h3> </div> <div id="participants"> <h3 id="participants_title">participants (1)</h3> <ul class="list-unstyled"> <li class="d-flex"> <div class="participant-gravatar circle"><img class="gravatar" src="https://secure.gravatar.com/avatar/da56018fec1036eb1e02305d09a0bce8.jpg?s=48&amp;d=mm&amp;r=g" width="48" height="48" alt="" /></div> <div class="participant-name d-flex align-items-center"> <span>Philipp A.</span> </div> </li> </ul> </div> </section> </div> </div> </div> <!-- end of content --> </div> <!-- /container for content --> <footer class="footer"> <div class="container"> <p class="text-muted"> <img class="logo" alt="HyperKitty" src="/static/hyperkitty/img/logo.png" /> Powered by <a href="http://hyperkitty.readthedocs.org">HyperKitty</a> version 1.3.12. </p> </div> </footer> <script src="/static/hyperkitty/libs/jquery/jquery-3.6.0.min.js"></script> <script src="/static/hyperkitty/libs/jquery/jquery-ui-1.13.1.min.js"></script> <script src="/static/CACHE/js/output.3aaa7705d68a.js"></script> <script> // Add the .js-enabled class to the body so we can style the elements // depending on whether Javascript is enabled. $(document).ready(function(){ $("body").addClass("js-enabled"); $(".gravatar").addClass("rounded-circle"); }); </script> <script type="text/javascript"> $(document).ready(function() { //enable tooltips for thread buttons $("btn#next-thread").tooltip(); $("btn#prev-thread").tooltip(); setup_category(); setup_tags(); setup_favorites(); // Hide quotes by default in the thread view fold_quotes("div.container-xxl"); // Load the replies update_thread_replies("/archives/list/python-ideas@python.org/thread/YKKEA5NIMMKHZTMRE5UFHST4WQ4NN3XJ/replies?sort=thread&last_view="); setup_unreadnavbar("#unreadnavbar"); setup_thread_keyboard_shortcuts(); }); </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10