2to3 issues with execfile on python 3.0 on files with encoding

Martin v. Loewis martin at v.loewis.de
Thu May 6 19:57:53 EDT 2010


> The default replacement should be really providing a new execfile that
> gets the encoding in the first 2 lines and opens it with the proper
> encoding set (and properly closes the stream).

No. The default replacement should really open the file in binary mode.

Regards,
Martin



More information about the Python-list mailing list