[Python-Dev] Criticism of execfile() removal in Python3

Nick Coghlan ncoghlan at gmail.com
Sun Jun 15 03:31:44 CEST 2014

On 15 Jun 2014 09:37, "Steve Dower" <Steve.Dower at microsoft.com> wrote:
> I think the point is that the encoding may be embedded in the file as a
coding comment and there's no obvious way to deal with that.

Opening source files correctly is the intended use case for tokenize.open().

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140615/8b5a52a2/attachment.html>

More information about the Python-Dev mailing list