Jacob J. Walker's Blog

Scholarly Thoughts, Research, and Journalism for Informal Peer Review

Archive for December 30th, 2014

Quick Guide to Writing “Cross-Versional” Python Code

without comments

Python LogoWhile Carleton College has a good guide about the differences that new students will likely see between the two, and there is an excellent blog article about why Python 3 hasn’t been more widely adopted, and the official Python site tries to explain the differences between the two versions; I have not been able to find any guides on how to write code that will automatically work in Python 3.x and the latest version of 2.x.   This is surprising, because one of the ways to get past the “gravity” of Python 2, is for people to learn to code in a manner that works for both 2 & 3.  So I decided to write a short guide myself.

Read the rest of this entry »

Written by Jacob Walker

December 30th, 2014 at 5:27 pm