[Python-Dev] Easy codec access
Greg Ewing
greg@cosc.canterbury.ac.nz
Thu, 17 May 2001 13:49:31 +1200 (NZST)
"M.-A. Lemburg" <mal@lemburg.com>:
> You forgot the most important one ;-) ...
>
> "print 'My first Python program'".decode("python").run()
Surely that should be:
"'My first Python program'.encode('stdout')".decode("python").decode("run")
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg@cosc.canterbury.ac.nz +--------------------------------------+