This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients belopolsky, brett.cannon, eli.bendersky, terry.reedy, vstinner
Date 2010-11-12.20:07:44
SpamBayes Score 1.243727e-06
Marked as misclassified No
Message-id <1289592480.61.0.0462681141639.issue10342@psf.upfronthosting.co.za>
In-reply-to
Content
>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.
History
Date User Action Args
2010-11-12 20:08:00terry.reedysetrecipients: + terry.reedy, brett.cannon, belopolsky, vstinner, eli.bendersky
2010-11-12 20:08:00terry.reedysetmessageid: <1289592480.61.0.0462681141639.issue10342@psf.upfronthosting.co.za>
2010-11-12 20:07:44terry.reedylinkissue10342 messages
2010-11-12 20:07:44terry.reedycreate