bpo-28307: Convert simple C-style formatting with literal format into f-string. by serhiy-storchaka · Pull Request #5012 · python/cpython
Conversation
@serhiy-storchaka, this is very nice!
Any benchmarks for this?
What would it take to move this forward for 3.8?
Results of microbenchmarks are provided on the tracker.
I want to add support of more complex format codes (at least %d) if this proposition be accepted in general.
serhiy-storchaka
changed the title
[POC] bpo-28307: Convert simple C-style formatting with literal format into f-string.
bpo-28307: Convert simple C-style formatting with literal format into f-string.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters