[Python-ideas] PEP 501 - i18n with marked strings
Jonathan Slenders
jonathan at slenders.be
Tue Aug 11 15:04:26 CEST 2015
Is there actually any issue with lazy interpolation? If not, I think it's
very neat.
2015-08-11 14:41 GMT+02:00 Stephen J. Turnbull <stephen at xemacs.org>:
> Petr Viktorin writes:
>
> > Well, if you want to get the equivalent of:
> >
> > _("Hello there, {name}").format(name=name)
> >
> > you can't use:
> >
> > _(f"Hello there, {name}")
>
> This is the "eager vs lazy" interpolation issue that also affects the
> logging use case, right?
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150811/ce87c846/attachment.html>
More information about the Python-ideas
mailing list