Éric Araujo <mer...@netwok.org> added the comment: > Note that it is useful for opening any text file with an encoding > cookie, not only python source code, This is cool. doctest could benefit from that, I think.
> so "tokenize.open()" sounds attractive. Agreed, even though the docstring of tokenize does talk about Python code. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10335> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com