newbie: unicode

Terry Reedy tjreedy at udel.edu
Tue Jan 7 10:28:07 EST 2003


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

It works fine in PythonWin's interactive window.

tjr






More information about the Python-list mailing list