Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Version of Python to Use for Maximum Compatibility

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?

like image 233
Cristian Avatar asked Sep 06 '08 02:09

Cristian


People also ask

What is the most compatible Python version?

For the sake of compatibility with third-party modules, it is always safest to choose a Python version that is one major point revision behind the current one. At the time of this writing, Python 3.8. 1 is the most current version. The safe bet, then, is to use the latest update of Python 3.7 (in this case, Python 3.7.

Which version of Python should I use for 2022?

The latest version Python 3.11 is set to release in October this year and the alpha phase is currently ongoing and generally goes on until May 2022.

Is Python 3.10 Backward Compatible?

The Python language does not provide backward compatibility.

Are Python versions compatible?

Specifying a Compatibility Python 3.4+: The workspace or custom transformer is compatible with Python 3.4 and higher. This value is the default when Preferred Python Interpreter (Tools > FME Options > Translation) is FME Python 3.4+ or a custom interpreter based on Python 3.4 or lower.


Video Answer


1 Answers

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.

like image 65
Peter Hoffmann Avatar answered Oct 15 '22 01:10

Peter Hoffmann