Python's 8-bit cleanness deprecated?

holger krekel pyth at
Mon Feb 3 22:13:10 CET 2003

Skip Montanaro wrote:
>     >> # -*- coding: Latin-1 -*-
>     Paul> What is this nonsense?  The interpreter is reading comment text
>     Paul> now?  Yucch!
> Given that most operating systems don't have files with data forks and
> resource forks, how would you tell the lexical analyzer what the encoding of
> a particular file is?

Well, that's easy, just do 

    from __future__ import encoding as utf8 


only-10-percent-serious-ly y'rs,


More information about the Python-list mailing list