newbie: unicode

Martin v. Löwis martin at
Tue Jan 7 21:23:25 CET 2003

"Fredrik Lundh" <fredrik at> writes:

> > > 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.
> does IDLE's prompt really qualify as "an ordinary interpreter prompt"
> if it doesn't behave properly?

No. It is actually that the tutorial is in error here. You cannot put
non-ASCII characters into Unicode literals in interactive mode, and
still expect correct interpretation of your code (in the sense that
the Unicode literal contains the characters you have typed).


More information about the Python-list mailing list