[Bulk] Re: Python 3

Gordon Tyler gordon.tyler at gmail.com
Wed Jun 23 15:04:45 BST 2010


On 22/06/2010 9:42 PM, Robert Collins wrote:
> For the bytes stuff I've mentioned - see
> http://bugs.python.org/issue5425 - 2to3 converts str to 'string' not
> 'bytes', so we have to mark up everything, and only Python 2.6
> supports b'foo'. If we change the importer to go to bytes for 'str',
> then we end up with all our literals that are meant for humans as
> bytes, which is also wrong. And while we support < 2.6, we can't
> annotate strings properly for bytes recognition without something like
> a domain specific language - e.g. a _b() function.

Why aren't all string literals meant for users marked as unicode in the
current codebase?

Ciao,
Gordon



More information about the bazaar mailing list