CodeJobler - Craftsman Programmer

How to print in Python regardless of Python 2 or 3

Wed 18 March 2020 in «tip» by Michael Beard
Tags: python, print, stderr, python2, python3

Found a good way to do print in both Python 2 and 3. I've hit this a couple of times now, so it would be good to remember it.

Here it is: print to stderr

Post in «tip» by Michael Beard
Tags: #python #print #stderr #python2 #python3

Pages

  • Home
  • Categories
  • Archives
  • Tags

Categories

  • blog
  • fun
  • interesting
  • react
  • tip
  • tool
  • tools

Links

  • Pelican
  • Diary of a Developer

Powered by Pelican