bpo-28307: Convert simple C-style formatting with literal format into f-string. by serhiy-storchaka · Pull Request #5012 · python/cpython

Conversation

…/cpython into optimize-c-style-format

@taleinat

@serhiy-storchaka, this is very nice!

Any benchmarks for this?

What would it take to move this forward for 3.8?

@serhiy-storchaka

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 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.

Apr 27, 2021

Labels