[New-bugs-announce] [issue12252] '\u' in unicode raw string raise an syntax error

Hanöfner Harald report at bugs.python.org
Fri Jun 3 11:55:30 CEST 2011


New submission from Hanöfner Harald <ha.harry at yahoo.de>:

The follow code:
s = ur"c:\that\is\a\new\unicode\path"

raise the follow error:
SyntaxError: (unicode error) 'rawunicodeescape' codec can't decode bytes in position 10-11: truncated \uXXXX

That is already corrected in Py 3 builds.

----------
components: Interpreter Core
messages: 137511
nosy: HarryH
priority: normal
severity: normal
status: open
title: '\u' in unicode raw string raise an syntax error
type: compile error
versions: Python 2.6, Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12252>
_______________________________________


More information about the New-bugs-announce mailing list