Current py3k stage and next steps

Antoine Pitrou solipsis at pitrou.net
Mon Jun 28 06:46:49 CDT 2010


Nicolas Dumazet <nicdumz <at> gmail.com> writes:
> 
> That could be an interesting solution.... for non-translated strings,
> where we can afford to split the string to format in several chunks.
> 
> Your specific example will cause some issues to localization team, as
> _ is our gettext wrapper:
> in _("some string %s foo %s bar") % (foo, bar), "some string %s foo %s
> bar" is a key for translators.

But that solution was mentioned merely for the case where some bytestrings are
huge and it would be a performance loss to do a roundtrip through unicode when
combining them with other text. In your example, I don't think `foo` and `bar`
can be huge bytestrings since they get inlined inside a sentence.

Regards

Antoine.




More information about the Mercurial-devel mailing list