[Tutor] trouble with stringio function in python 3.2
eryksun
eryksun at gmail.com
Mon May 4 16:58:05 CEST 2015
On Mon, May 4, 2015 at 2:46 AM, Chris Warrick <kwpolska at gmail.com> wrote:
> Python 3.0–3.2 do not support the u'' notation for Unicode strings, it
> was restored in Python 3.3 to make it easier to write code compatible
> with 2.x and 3.x
Whoever restored this forgot about raw literals:
>>> ur'abc'
File "<stdin>", line 1
ur'abc'
^
SyntaxError: invalid syntax
More information about the Tutor
mailing list