Building a Python 2/3 compatible Unicode Sandwich

Posted on March 10, 2017 in programming • Tagged with python

So you've decided that your code needs to be compatible with both Python 2 and Python 3. Most likely, you're upgrading your Python 2 code to work in Python 3, and know that you need to do things like:

  • Replace all calls to print with print()
  • Use absolute rather than …
Continue reading