newbie: unicode

Terry Reedy tjreedy at
Tue Jan 7 16:28:07 CET 2003

"Martin v. Löwis" <martin at> wrote in message
news:m38yxxnt20.fsf at
> "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.

It works fine in PythonWin's interactive window.


More information about the Python-list mailing list