Simplifying print() string formatting

A couple of weeks ago, there was a lengthy discussion on the python-ideas mailing list about how to simplify string formatting in Python 3, esp. related to print() output.Several proposals were made and three PEP came out of the discussion:PEP 0498 – Literal String InterpolationIntroducing f’str{i}ngs’, which was accepted.PEP 0501 – General purpose string interpolationA competing proposal to introduce i’i18n’ strings with similar formatting capabilities, but more focus on being able to translate string literals. This PEP is currently deferred.PEP 0502 – String Interpolation – Extended DiscussionAn informational PEP summarizing the lengthy discussions.When will this be available ?

The accepted PEP

Continue reading the original article