diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2021-05-08 22:33:10 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-08 22:33:10 +0300 |
| commit | a0bd9e9c11f5f52c7ddd19144c8230da016b53c6 (patch) | |
| tree | fff84d3ae52bfbf3b3e50779625c7b52b01d94b0 /Lib/ast.py | |
| parent | 6692dc1ca99fb34a19d0a4b93cf8e10619490001 (diff) | |
| download | cpython-git-a0bd9e9c11f5f52c7ddd19144c8230da016b53c6.tar.gz | |
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.
Diffstat (limited to 'Lib/ast.py')
0 files changed, 0 insertions, 0 deletions
