[Python-Dev] Replacement for print in Python 3.0

Stephan Deibel sdeibel at wingware.com
Mon Sep 5 00:38:52 CEST 2005


On Sun, 4 Sep 2005, Guido van Rossum wrote:
> But more important to me are my own experiences exploring the
> boundaries of print.
> 
> - I quite often come to a point in the evolution of a program where I
> need to change all print statements into logging calls, or calls into
> some other I/O or UI library. [...]

FWIW, this almost always happens to me.  Although I've learned to 
avoid print in most cases, it was a somewhat painful lesson that seems 
quite at odds with how the rest of Python is designed -- usually, 
stuff just works and you aren't led into such design traps.

- Stephan


More information about the Python-Dev mailing list