idle 3.0 unicode

Mark Tolonen metolone+gmane at gmail.com
Thu Jan 1 14:12:44 EST 2009


"Pavel Kosina" <geon at post.cz> wrote in message 
news:495C7AC6.1000506 at post.cz...
> As for unicode in Python 2.5 everything works fine in program running 
> either in IDLE or under Command line:
> # -*- coding: utf-8 -*-
> print u"ěščřžýáíé"
>
> In 3.0 there is an error.  The same program, moved to 3.0 syntax, in IDLE 
> editor :
> # -*- coding: utf-8 -*-
> print ("ěščřžýáíé")
>
> prints:
> ěščřžýáíé
>
> The same program running in Command line from PSPad editor works fine.  Is 
> it mistake of my misunderstanding or of IDLE?
>
> -------------
>
> The same program without coding declaration (but saved in utf8) :
> print ("ěščřžýáíé")
>
> even immediately destroyed my IDLE window without any error message.

Both versions, with and without 'coding' line, destroy IDLE for me.  Looks 
like a bug in IDLE 3.0.

The print works fine from the shell, but not from a program run with F5.

-Mark





More information about the Python-list mailing list