Browse Source

Adding mention on Python 2 vs. 3

Swaroop C H 12 years ago
parent
commit
cc937bd214
1 changed files with 10 additions and 0 deletions
  1. 10 0
      03-intro.pd

+ 10 - 0
03-intro.pd

@@ -61,6 +61,16 @@ The Python Standard Library is huge indeed. It can help you do various things in
 
 Python is indeed an exciting and powerful language. It has the right combination of performance and features that make writing programs in Python both fun and easy.
 
+## Python 3
+
+You can ignore this section if you're not interested in the difference between Python 2 and Python 3. But please do be aware of which version you are using.
+
+This book was rewritten in 2008 for Python 3. This had resulted in confusion for readers who would try to use Python 2 with the Python 3 version of the book and vice-versa. And slowly, the world is still migrating to Python 3 but that is still a few years away.
+
+In 2012, I have begun migrating this book back to Python 2 but with an eye on making the reader write in a Python 3-friendly manner.
+
+For details on how to migrate from Python 2 to Python 3, see the [Python/3 page on the Ubuntu wiki](https://wiki.ubuntu.com/Python/3).
+
 ## Why not Perl?
 
 If you didn't know already, Perl is another extremely popular open source interpreted programming language.