summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthias Bussonnier <bussonniermatthias@gmail.com>2015-10-13 17:56:48 -0700
committerMatthias Bussonnier <bussonniermatthias@gmail.com>2015-10-13 17:56:48 -0700
commitc05400477b05eb2f5f9ef7fb2d168c84e14fc26e (patch)
treed2b6034f0d0b1973ed7029d2f53ea25c8652cf57
parent96bb81488990e3de9fbfd20cf3093a4064ec1433 (diff)
Update Python 2 vs Python 3
Add fact that Python 2 is reaching end of life. And note that you can use `__future__` to add Python 2 and 3 compatible code.
-rw-r--r--python.html.markdown8
1 files changed, 7 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 5b36083d..57a4d0d6 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -14,7 +14,13 @@ executable pseudocode.
Feedback would be highly appreciated! You can reach me at [@louiedinh](http://twitter.com/louiedinh) or louiedinh [at] [google's email service]
Note: This article applies to Python 2.7 specifically, but should be applicable
-to Python 2.x. For Python 3.x, take a look at the [Python 3 tutorial](http://learnxinyminutes.com/docs/python3/).
+to Python 2.x. Python 2.7 is reachong end of life and will stop beeign maintained in 2020,
+it is though recommended to start learnign Python with Python 3.
+For Python 3.x, take a look at the [Python 3 tutorial](http://learnxinyminutes.com/docs/python3/).
+
+It is also possible to write Python code which is compatible with Python 2.7 and 3.x at the same time,
+using Python [`__future__` imports](https://docs.python.org/2/library/__future__.html). `__future__` imports
+allow you to write Python 3 code that will run on Python 2, so check out the Python 3 tutorial.
```python