does raw_input() return unicode?

"Martin v. Löwis" martin at v.loewis.de
Tue Oct 10 03:53:52 EDT 2006


Stuart McGraw schrieb:
> So, does raw_input() ever return unicode objects and if
> so, under what conditions?

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.

Regards,
Martin



More information about the Python-list mailing list