newbie: unicode

Martin v. Löwis martin at v.loewis.de
Tue Jan 7 05:38:31 EST 2003


"Fredrik Lundh" <fredrik at pythonware.com> 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.

Regards,
Martin





More information about the Python-list mailing list