[Python-Dev] Unicode source code
Just van Rossum
just@letterror.com
Sun, 9 Feb 2003 19:59:06 +0100
I wrote:
> Hm. What I'm looking into now is to simply define a PyCompilerFlags
> flag called PyCF_SOURCE_IS_UTF8. eval() and compile() will then
> convert a unicode string to utf-8 and set this flag. This seems a
> very low-impact solution. Does this make sense?
Whether it makes sense I don't know <wink>, but it _does_ work. I've
uploaded a patch, including test for eval() and compile():
http://python.org/sf/683515
Just