Terry J. Reedy <tjre...@udel.edu> added the comment: >Line iterator does not carry the information about source encoding which may be important for annotating the source code.
I would pass around both encoding and lines, possibly as a tuple. A person heavily into OO might define a _Source class and turn the private functions into methods. But that would not play well with the deprecation process until it is done with. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10342> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com