small medium large xlarge

Adamtornhill copy_pragsmall
05 Aug 2015, 18:36
Adam Tornhill (14 posts)

Python is a curious case; The language evolves on two different branches, Python 2 and Python 3. The scripts in the book use Python 2 (more precise, I tested them with Python 2.7.5).

So, in case you run into any strange errors (for example AttributeError: '_csv.reader' object has no attribute 'next'), make sure to check which Python version you run.

Now, why did I go with legacy Python 2 when there’s a more modern version? The reason is that I want to run the scripts on the .NET (IronPython) and JVM (Jython) versions of Python too and these implementations only support the older version.

You must be logged in to comment