newbie: unicode

Martin v. Löwis martin at
Tue Jan 7 11:38:31 CET 2003

"Fredrik Lundh" <fredrik at> writes:

> how are you executing that command?
> there's no way that piece of code can give that error message,
> as long as ">>>" is an ordinary Python 2.x interpreter prompt, and
> you haven't been hacking around in the site configuration files...

You get that error in IDLE. Tk returns the source code as a Unicode
object, IDLE passes it to compile. This produces the UnicodeError.


More information about the Python-list mailing list