[Python-Dev] Unicode source code (original) (raw)

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 PyCFSOURCEISUTF8. 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 , but it does work. I've uploaded a patch, including test for eval() and compile():

http://python.org/sf/683515

Just