Re: Deprecating the "u" string literal prefix

Dec. 5, 2019
8:52 a.m.
Barry Warsaw [mailto:barry@python.org] wrote:
str.format() really isn’t enough to do proper i18n; it’s actually a fairly complex topic.
Obviously.
I’m not convinced that PEP 501 would provide much benefit on the technical side.
My point exactly.
flufl.i18n - https://flufli18n.readthedocs.io/en/latest/
This seems to retrieve variables from the surrounding scope, in a manner reminiscent of f-strings (though obviously implemented very differently). I would never use that for translatable strings, partly on security grounds, and partly because it adds coupling between UI texts and code. regards, Anders
1933
Age (days ago)
1933
Last active (days ago)
0 comments
1 participants
participants (1)
-
Anders Munch