Current py3k stage and next steps

Nicolas Dumazet nicdumz at gmail.com
Mon Jun 28 06:49:00 CDT 2010


2010/6/28 Antoine Pitrou <solipsis at pitrou.net>:
> 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.

I see! Sorry for getting us side-tracked then :)


-- 
Nicolas Dumazet — NicDumZ


More information about the Mercurial-devel mailing list