@@ -20,9 +20,9 @@ one might think.
20
20
21
21
The basic gist of the state of things is as follows:
22
22
23
- 1. Most production applications today use Python 2.7 .
23
+ 1. Most production applications today use Python 3 .
24
24
2. Python 3 is ready for the production deployment of applications today.
25
- 3. Python 2.7 will only receive necessary security updates until 2020 [#pep373_eol ]_.
25
+ 3. Python 2 reached the end of its life on January 1, 2020 [#pep373_eol ]_.
26
26
4. The brand name "Python" encapsulates both Python 3 and Python 2.
27
27
28
28
@@ -40,10 +40,6 @@ I'll be blunt:
40
40
- If you're learning Python for the first time, familiarizing yourself with Python 2.7 will be very
41
41
useful, but not more useful than learning Python 3.
42
42
- Learn both. They are both "Python".
43
- - Software that is already built often depends on Python 2.7.
44
- - If you are writing a new open source Python library, it's best to write it for both Python 2 and 3
45
- simultaneously. Only supporting Python 3 for a new library you want to be widely adopted is a
46
- political statement and will alienate many of your users. This is not a problem — slowly, over the next three years, this will become less the case.
47
43
48
44
49
45
*********
@@ -58,18 +54,14 @@ Given such, only use Python 2 if you have a strong reason to, such as a
58
54
pre-existing code-base, a Python 2 exclusive library, simplicity/familiarity,
59
55
or, of course, you absolutely love and are inspired by Python 2. No harm in that.
60
56
61
- Check out `Can I Use Python 3? <https://caniusepython3.com/ >`_ to see if any
62
- software you're depending on will block your adoption of Python 3.
63
57
64
58
`Further Reading <http://wiki.python.org/moin/Python2orPython3 >`_
65
59
66
60
It is possible to `write code that works on Python 2.6, 2.7, and Python 3
67
61
<https://docs.python.org/3/howto/pyporting.html> `_. This
68
62
ranges from trivial to hard depending upon the kind of software
69
63
you are writing; if you're a beginner there are far more important things to
70
- worry about. Note that Python 2.6 is end-of-life upstream, so you shouldn't
71
- try to write 2.6-compatible code unless you're being paid specifically to
72
- do that.
64
+ worry about.
73
65
74
66
75
67
***************
@@ -135,7 +127,8 @@ expose Python code to other languages in the .NET framework.
135
127
IronPython directly into the Visual Studio development environment, making it
136
128
an ideal choice for Windows developers.
137
129
138
- IronPython supports Python 2.7. [#iron_ver ]_
130
+ IronPython supports Python 2.7. [#iron_ver ]_ IronPython 3 [#iron_ver3 ]_
131
+ is being developed, but is not ready for use as of September 2020.
139
132
140
133
PythonNet
141
134
---------
@@ -151,16 +144,16 @@ installations on non-Windows operating systems, such as OS X and
151
144
Linux, to operate within the .NET framework. It can be run in
152
145
addition to IronPython without conflict.
153
146
154
- Pythonnet supports from Python 2.6 up to Python 3.5. [#pythonnet_ver1 ]_ [ #pythonnet_ver2 ]_
147
+ Pythonnet is compatible with Python 2.7 and 3.5-3.8. [#pythonnet_ver1 ]_
155
148
156
- .. [#pypy_ver ] http ://pypy.org/compat.html
149
+ .. [#pypy_ver ] https ://pypy.org/compat.html
157
150
158
151
.. [#jython_ver ] https://hg.python.org/jython/file/412a8f9445f7/NEWS
159
152
160
- .. [#iron_ver ] http ://ironpython.codeplex.com/releases/view/81726
153
+ .. [#iron_ver ] https ://ironpython.net/download/
161
154
162
- .. [#pythonnet_ver1 ] https://travis-ci.org/pythonnet/pythonnet
155
+ .. [#iron_ver3 ] https://github.com/IronLanguages/ironpython3
163
156
164
- .. [#pythonnet_ver2 ] https://ci.appveyor.com/project/TonyRoberts/pythonnet-480xs
157
+ .. [#pythonnet_ver1 ] https://pythonnet.github.io/
165
158
166
159
.. [#pep373_eol ] https://www.python.org/dev/peps/pep-0373/#id2
0 commit comments