does raw_input() return unicode?

Theerasak Photha hanumizzle at
Wed Oct 11 03:59:47 CEST 2006

On 10/10/06, "Martin v. Löwis" <martin at> wrote:
> Theerasak Photha schrieb:
> >> At the moment, it only returns unicode objects when invoked
> >> in the IDLE shell, and only if the character entered cannot
> >> be represented in the locale's charset.
> >
> > Why only IDLE? Does urwid or another console UI toolkit avoid this somehow?
> I admit I don't know what urwid is; from a shallow description I find
> ("a console user interface library") I can't see the connection to
> raw_input(). How would raw_input() ever use urwid?

The other way around: would urwid use raw_input() or other Python
input functions anywhere?

And what causes Unicode input to work in IDLE alone?

-- Theerasak

More information about the Python-list mailing list