[issue10335] tokenize.open_python(): open a Python file with the right encoding

Éric Araujo report at bugs.python.org
Sat Nov 6 17:32:04 CET 2010

Éric Araujo <merwok at netwok.org> added the comment:

I don’t know if it would be okay to depend on tokenize in io.  Anyway, I tend to prefer tokenize.open over builtins.open(..., encoding='fromcookie').

nosy: +pitrou

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list