python兼容性怎么样_使用哪个版本的Python获得最大兼容性

在启动开源Python项目时,考虑到大多数用户可能更倾向于使用稳定版本,建议选择2.4或2.5版本。由于Python正处于从2.x向3.0过渡的阶段,尽管Python3有新特性,但并非所有平台都支持,且重要外部库可能未完全移植。因此,保持在2.x系列并计划未来迁移到Python3是一个稳健的选择。
摘要由CSDN通过智能技术生成

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?

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?

解决方案

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.

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.

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值