Py3.3 unicode literal and input()

jmfauth wxjmfauth at gmail.com
Mon Jun 25 07:17:00 EDT 2012


Mea culpa. I had not my head on my shoulders.
Inputing if working fine, it returns "text" correctly.

However, and this is something different, I'm a little
bit surprised, input() does not handle escaped characters
(\u, \U).
Workaround: encode() and decode() as "raw-unicode-escape".

jmf



More information about the Python-list mailing list