[openstack-dev] Python 3

Doug Hellmann doug.hellmann at dreamhost.com
Tue Jul 23 21:32:29 UTC 2013


On Tue, Jul 23, 2013 at 4:41 PM, Logan McNaughton <logan at bacoosta.com>wrote:

> I'm sure this has been asked before, but what exactly is the plan for
> Python 3 support?
>
> Is the plan to support 2 and 3 at the same time? I was looking around for
> a blue print or something but I can't seem to find anything.
>
> If Python 3 support is part of the plan, can I start running 2to3 and
> making edits to keep changes compatible with Python 2?
>

Eric replied with details, but I wanted to address the question of 2to3.

Using 2to3 is no longer the preferred way to port to Python 3. With changes
that landed in 3.3, it is easier to create code that will run under python
2.7 and 3.3, without resorting to the translation steps that were needed
for 3.0-3.2. Chuck Short has landed a series of patches modifying code by
hand for some cases (mostly print and exceptions) and by using the six
library in others (for iteration and module renaming).

Doug


>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130723/1da8b693/attachment.html>


More information about the OpenStack-dev mailing list