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

Éric Araujo report at bugs.python.org
Sat Nov 6 16:44:14 CET 2010


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

> The test uses TESTFN+'.py', not TESTFN ;-)
Ah, right.  You can use addCleanup then.

> Do you prefer a name like tokenize.open()?
Hm, tokenize being “Tokenization help for Python programs”, I think this name is rather good.  Or tokenize.open_source.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10335>
_______________________________________


More information about the Python-bugs-list mailing list