Re: [Qemu-devel] [PATCH v5 03/28] qapi: Require ASCII in schema

2015-03-26 Thread Markus Armbruster
Eric Blake writes: > On 03/24/2015 02:03 PM, Eric Blake wrote: >> Python 2 and Python 3 have a wild history of whether strings >> default to ascii or unicode, where Python 3 requires checking >> instanceof(foo, basestr) to cover all strings, but where that >> code is not portable to Python 2. It

Re: [Qemu-devel] [PATCH v5 03/28] qapi: Require ASCII in schema

2015-03-24 Thread Eric Blake
On 03/24/2015 02:03 PM, Eric Blake wrote: > Python 2 and Python 3 have a wild history of whether strings > default to ascii or unicode, where Python 3 requires checking > instanceof(foo, basestr) to cover all strings, but where that > code is not portable to Python 2. It's simpler to just state >

[Qemu-devel] [PATCH v5 03/28] qapi: Require ASCII in schema

2015-03-24 Thread Eric Blake
Python 2 and Python 3 have a wild history of whether strings default to ascii or unicode, where Python 3 requires checking instanceof(foo, basestr) to cover all strings, but where that code is not portable to Python 2. It's simpler to just state that we don't care about Unicode strings, and to jus