Py3.3 unicode literal and input()
Andrew Berg
bahamutzero8825 at gmail.com
Mon Jun 18 12:55:14 EDT 2012
On 6/18/2012 11:32 AM, Jussi Piitulainen wrote:
> jmfauth writes:
>
>> Thinks are very clear to me. I wrote enough interactive
>> interpreters with all available toolkits for Windows
>
>>>> r = input()
> u'a
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> SyntaxError: u'a
>
> Er, no, not really :-)
>
You're using 2.x; this thread concerns 3.3, which, as has been repeated
several times, does not evaluate strings passed via input() like 2.x.
That code does not raise a SyntaxError in 3.x.
--
CPython 3.3.0a4 | Windows NT 6.1.7601.17803
More information about the Python-list
mailing list