running python 2 vs 3

Chris Angelico rosuav at
Fri Mar 21 06:54:26 CET 2014

On Fri, Mar 21, 2014 at 4:49 PM, Marko Rauhamaa <marko at> wrote:
> Chris Angelico <rosuav at>:
>> go for the lowest common denominator:
>> print("some single string")
>> which works happily in all versions of Python.
> Whenever I have used "print" in my code, it has been with a >>
> redirection.

Then you're probably not using "sys.stdout.write" but some other file
object's write method.

Also, I find it highly unusual that you never use print in its most
basic and intended form.


More information about the Python-list mailing list