[New-bugs-announce] [issue29285] Unicode errors occur inside of multi-line comments

John Taylor report at bugs.python.org
Mon Jan 16 12:06:40 EST 2017


New submission from John Taylor:

I am using Python 3.5.2 on OS X 10.11.6.  The same error occurs with 3.5.2 on Windows 10.

When I run the attached code, I get this error:

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 23-24: truncated \uXXXX escape

I think unicode processing should be ignored inside of multiline comments.
Inside of my comments, I really want to use this text verbatim.

----------
components: Interpreter Core
files: example.py
messages: 285573
nosy: jftuga
priority: normal
severity: normal
status: open
title: Unicode errors occur inside of multi-line comments
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file46303/example.py

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


More information about the New-bugs-announce mailing list