[Python-3000] Python 3.0 Porting Strategies
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 28 00:06:19 CET 2008
Charles Merriam wrote:
> How can I write the greatest common denominator of this code:
>
> print "Hello World!" # yes, that needs to be Unicode.
Something like
from __future__ import unicode_literals
from py3k_compat import Print
Print("Hello World!") # yes, that indeed is Unicode.
given suitable implementations of py3k_compat for
each environment.
--
Greg
More information about the Python-3000
mailing list