codecs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TK

    #1

    codecs

    Hi there,

    sys.stdout = codecs.lookup(' utf-8')[-1](sys.stdout)

    What does this line mean?

    Thanks.

    o-o

    Thomas
  • André Malo

    #2
    Re: codecs

    * TK <merman@o2onlin e.de> wrote:
    [color=blue]
    > sys.stdout = codecs.lookup(' utf-8')[-1](sys.stdout)
    > What does this line mean?[/color]

    "Wrap stdout with an UTF-8 stream writer".
    See the codecs module documentation for details.

    nd

    Comment

    Working...