[issue4626] compile() doesn't ignore the source encoding when a string is passed in

Jean-Michel Fauth report at bugs.python.org
Mon Mar 30 21:26:11 CEST 2009


Jean-Michel Fauth <wxjmfauth at gmail.com> added the comment:

Quick feedback from a Windows user.

I made a few more tests with the freshly installed Pyton 3.1a1. The
compile() function is running very well.

As a side effect, it now possible to write an "execfile()" without
any problem. Tests with execfile() versions reading files as text
or as binary, with/without coding cookies, BOM, cp1252, cp850, cp437, 
utf-8 cookie, utf-8 with bom, ....

(Of course, taking in account and managing universal newline).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4626>
_______________________________________


More information about the Python-bugs-list mailing list