[openstack-dev] Python 3

Doug Hellmann doug.hellmann at dreamhost.com
Fri Jul 26 11:27:58 UTC 2013

On Wed, Jul 24, 2013 at 2:43 PM, Brian Curtin <brian.curtin at rackspace.com>wrote:

>  On Jul 24, 2013, at 1:27 PM, Eric Windisch <eric at cloudscaling.com>
>  wrote:
>   Speaking of preferred ways to port, has there been any discussion about
>> which version takes precedence when we have to do different things? For
>> example, with imports, should we be trying the 2.x name first and falling
>> back to 3.x on ImportError, or vice versa?
>  Are we having it now? My belief here is we should be following the
> principle of "ask forgiveness, not permission". Try Python 3 and then
> fallback to Python 2 whenever possible.
>  That's my belief and preference as well.

It may not be possible to create a hard-and-fast rule on this. There was a
case this week where the use of the "configparser" library caused a parse
error under Python 2 when "ConfigParser" worked properly.


> _______________________________________________
> 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/20130726/4ae90503/attachment.html>

More information about the OpenStack-dev mailing list