Part of my work in different companies has been about the transition fromp python2 to python3


This is the most obvious point of conflict. The old print “string” doesn’t work anymore.

print "abc"



New modules and classes names

A few of the libraries that come with python have changed their name to something else That affects to the oneliners too, like the http server

String and Unicode

String and bytes

most libraries use .decode and .encode to alter the meaning of a string. In python 3 strings are always encoded, and bytes are always decoded

Absolute imports as default