[Python-Dev] PEP-498: Literal String Formatting

Alexander Walters tritium-list at sdamon.com
Tue Aug 11 17:09:36 CEST 2015


This may seam like a simplistic solution to i18n, but why not just add a 
method to string objects (assuming we implement f-strings) that just 
returns the original, unprocessed string.  If the string was not an 
f-string, it just returns self.  The gettext module can be modified, I 
think trivially, to use the method instead of the string directly.

Is this a horrible idea?

- Alex W.


More information about the Python-Dev mailing list