8000 Merge pull request #1068 from hharutyunyan/master · basic612/python-guide@b2eab69 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2eab69

Browse files
authored
Merge pull request realpython#1068 from hharutyunyan/master
Fixes for Python 2 End of Life
2 parents 1bea7ad + 5ae6568 commit b2eab69

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

docs/starting/which-python.rst

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ one might think.
2020

2121
The basic gist of the state of things is as follows:
2222

23-
1. Most production applications today use Python 2.7.
23+
1. Most production applications today use Python 3.
2424
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]_.
2626
4. The brand name "Python" encapsulates both Python 3 and Python 2.
2727

2828

@@ -40,10 +40,6 @@ I'll be blunt:
4040
- If you're learning Python for the first time, familiarizing yourself with Python 2.7 will be very
4141
useful, but not more useful than learning Python 3.
4242
- 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.
4743

4844

4945
*********
@@ -58,18 +54,14 @@ Given such, only use Python 2 if you have a strong reason to, such as a
5854
pre-existing code-base, a Python 2 exclusive library, simplicity/familiarity,
5955
or, of course, you absolutely love and are inspired by Python 2. No harm in that.
6056

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.
6357

6458
`Further Reading <http://wiki.python.org/moin/Python2orPython3>`_
6559

6660
It is possible to `write code that works on Python 2.6, 2.7, and Python 3
6761
<https://docs.python.org/3/howto/pyporting.html>`_. This
6862
ranges from trivial to hard depending upon the kind of software
6963
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.
7365

7466

7567
***************
@@ -135,7 +127,8 @@ expose Python code to other languages in the .NET framework.
135127
IronPython directly into the Visual Studio development environment, making it
136128
an ideal choice for Windows developers.
137129

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.
139132

140133
PythonNet
141134
---------
@@ -151,16 +144,16 @@ installations on non-Windows operating systems, such as OS X and
151144
Linux, to operate within the .NET framework. It can be run in
152145
addition to IronPython without conflict.
153146

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]_
155148

156-
.. [#pypy_ver] http://pypy.org/compat.html
149+
.. [#pypy_ver] https://pypy.org/compat.html
157150
158151
.. [#jython_ver] https://hg.python.org/jython/file/412a8f9445f7/NEWS
159152
160-
.. [#iron_ver] http://ironpython.codeplex.com/releases/view/81726
153+
.. [#iron_ver] https://ironpython.net/download/
161154
162-
.. [#pythonnet_ver1] https://travis-ci.org/pythonnet/pythonnet
155+
.. [#iron_ver3] https://github.com/IronLanguages/ironpython3
163156
164-
.. [#pythonnet_ver2] https://ci.appveyor.com/project/TonyRoberts/pythonnet-480xs
157+
.. [#pythonnet_ver1] https://pythonnet.github.io/
165158
166159
.. [#pep373_eol] https://www.python.org/dev/peps/pep-0373/#id2

0 commit comments

Comments
 (0)
0