Current py3k stage and next steps
Antoine Pitrou
solipsis at pitrou.net
Mon Jun 28 05:58:19 CDT 2010
Matt Mackall <mpm <at> selenic.com> writes:
>
> Neat. Not sure it helps us though. We still have the issue that byte
> strings may be unreasonably large.
Do you combine text and bytes for other purposes than I/O?
For example, you could easily turn:
ui.write(_("some message: %s\n") % somerawdata)
into:
ui.write(_("some message: "))
ui.writeb(somerawdata)
ui.write("\n")
where ui.writeb() would write the raw data directly and without any decoding.
(I'm using ui as an example but the same applies to file I/O, of course)
Regards
Antoine.
More information about the Mercurial-devel
mailing list