newbie: unicode

Martin v. Löwis martin at v.loewis.de
Tue Jan 7 15:23:25 EST 2003


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

Regards,
Martin




More information about the Python-list mailing list