[Python-ideas] Combine f-strings with i18n - How about using PEP 501?
Anders Hovmöller
boxed at killingar.net
Wed Sep 19 03:02:41 EDT 2018
>> I'd suggest using parso to do it. It's a really great library to write such transformations.
>
> Ah. It wasn't clear what your destination was, so I thought you were
> talking about doing the translation itself using parso. But yeah, grab
> one of these sorts of parsing libraries, do the transformation, save
> back, then use a standard translation library. Seems a lot easier than
> changing the language.
Ah, my bad.
I agree that this is the way forward for people who are trying to localize an existing app, but I still think we should _also_ change the language. F-strings are great and .format is powerful but there is a too big gap in usability and readability between them. This gap is one of the most compelling motivations for my suggestion of a short form for keyword arguments, while also helping us poor guys who deal with huge legacy code bases :)
/ Anders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180919/624ee503/attachment-0001.html>
More information about the Python-ideas
mailing list