This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Mark.Shannon, brandtbucher, eric.smith, serhiy.storchaka, taleinat, vstinner, ztane
Date 2021-09-22.13:56:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632318993.45.0.734035124675.issue28307@roundup.psfhosted.org>
In-reply-to
Content
commit a0bd9e9c11f5f52c7ddd19144c8230da016b53c6
Author: Serhiy Storchaka <storchaka@gmail.com>
Date:   Sat May 8 22:33:10 2021 +0300

    bpo-28307: Convert simple C-style formatting with literal format into f-string. (GH-5012)
    
    C-style formatting with literal format containing only format codes
    %s, %r and %a (with optional width, precision and alignment)
    will be converted to an equivalent f-string expression.
    
    It can speed up formatting more than 2 times by eliminating
    runtime parsing of the format string and creating temporary tuple.

commit 8b010673185d36d13e69e5bf7d902a0b3fa63051
Author: Serhiy Storchaka <storchaka@gmail.com>
Date:   Sun May 23 19:06:48 2021 +0300

    bpo-28307: Tests and fixes for optimization of C-style formatting (GH-26318)
    
    Fix errors:
    * "%10.s" should be equal to "%10.0s", not "%10s".
    * Tuples with starred expressions caused a SyntaxError.
History
Date User Action Args
2021-09-22 13:56:33vstinnersetrecipients: + vstinner, taleinat, eric.smith, Mark.Shannon, serhiy.storchaka, ztane, brandtbucher
2021-09-22 13:56:33vstinnersetmessageid: <1632318993.45.0.734035124675.issue28307@roundup.psfhosted.org>
2021-09-22 13:56:33vstinnerlinkissue28307 messages
2021-09-22 13:56:33vstinnercreate