[openstack-dev] [Solum] Unicode strings in Python3

Georgy Okrokvertskhov gokrokvertskhov at mirantis.com
Thu Dec 5 16:42:52 UTC 2013


On Thu, Dec 5, 2013 at 8:32 AM, Christopher Armstrong <
chris.armstrong at rackspace.com> wrote:

> On Thu, Dec 5, 2013 at 3:26 AM, Julien Danjou <julien at danjou.info> wrote:
>
>> On Wed, Dec 04 2013, Georgy Okrokvertskhov wrote:
>>
>> > Quick summary: you can't use unicode() function and u' ' strings in
>> Pyhton3.
>>
>> Not that it's advised, but you can use u' ' back again with Python 3.3.
>>
>>
> And this is a very useful feature for projects that want to have a single
> codebase that runs on both python 2 and python 3, so it's worth taking
> advantage of.
>

You are right. PEP 414 introduces u"" literals in Python3.3. Unicode()
function still does not work and should be avoided in the code, though.

-- 
> IRC: radix
> Christopher Armstrong
> Rackspace
>
>
>


-- 
Georgy Okrokvertskhov
Technical Program Manager,
Cloud and Infrastructure Services,
Mirantis
http://www.mirantis.com
Tel. +1 650 963 9828
Mob. +1 650 996 3284
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131205/840e799c/attachment.html>


More information about the OpenStack-dev mailing list