使用哪个版本的Python获得最大兼容性 [英] Which Version of Python to Use for Maximum Compatibility

查看:331
本文介绍了使用哪个版本的Python获得最大兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我要使用Python启动一个开源项目,应该使用哪个版本来确保绝大多数用户可以在其系统上使用它?

If I was going to start an open source project using Python what version should I use to ensure that the vast majority of users can use it on their system?

我是那种会迅速跳到下一个版本的人(当Python 3发行时我会做的),但是如果他们的当前版本似乎工作正常,许多人可能会更加保守。哪个版本会达到最佳效果,但仍然允许我享受最新,最酷的语言增强功能?

I'm the kind of person who quickly jumps to the next version (which I'll do when Python 3 comes out) but many people may be more conservative if their current version seems to be working fine. What version would hit the sweet spot but still allow me to enjoy the newest and coolest language enhancements?

推荐答案

由于python是实物向python 3过渡并具有向后兼容的过渡阶段,我认为仅使用python 3并不是一个好主意。根据时间线,至少会有一两个在10月2.6 / 3.0之后发布了2.x系列。

As python is in kind of an transition phase towards python 3 with breaking backward compatibility I don't think it is a good idea to go python 3 only. Based on the time line there will be at least one or two following releases of the 2.x series after 2.6/3.0 in october.

除了目标平台上没有python 3之外,重要的外部python还需要一些时间库将在python 3上移植并可用。

Beside not having python 3 available on your target platforms, it will take some time until important external python libraries will be ported and usable on python 3.

因此,正如Matthew建议将其保持在2.4 / 2.5并保持转换考虑到python 3的计划是一个不错的选择。

So as Matthew suggests staying at 2.4/2.5 and keeping the transition plan to python 3 in mind is a solid choice.

这篇关于使用哪个版本的Python获得最大兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆