SIGN IN SIGN UP

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.
S
Serhiy Storchaka committed
a0bd9e9c11f5f52c7ddd19144c8230da016b53c6
Parent: 6692dc1
Committed by GitHub <noreply@github.com> on 5/8/2021, 7:33:10 PM