Stephen J. Turnbull
stephen at xemacs.org
Tue Jun 2 02:55:38 BST 2009
John Arbash Meinel writes:
> Which means that internally we need to pay a lot more attention when
> reading and writing, as to whether we want to be dealing with raw bytes,
> or with Unicode strings. My guess is that most things want to go to
> 'bytes' (aka stay as 8-bit strings), but someone would really need to
> dig into it.
No, that's actually pretty unlikely. Yes, most of the content wants
to be binary, but in the code of bzr most of it is dedicated to
metadata for presentation to users ... which is text = str = Unicode.
Of course there are the internal data structures, which have to be
serialized to bytes for committing, but also to str for presentation.
How you factor that is going to be an important decision.
> Since the 2.x series of python isn't planned for obsoletion just yet, I
> don't think we have serious plans to switch over to 3.x for quite some
Have you tried Python 3? It's nice ....
Not to recommend that Bazaar make the switch just yet, though.
More information about the bazaar