[New-bugs-announce] [issue40250] unable to comment out r'\u' string with triple quote marks
Elmar Bucher
report at bugs.python.org
Fri Apr 10 19:03:11 EDT 2020
New submission from Elmar Bucher <elmbeech at gmail.com>:
When I try to comment out this little code by triple quotation,
I run into
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 29-30: truncated \uXXXX escape
ls_tex = []
ls_tex.append(r'\usepackage{mathtools}')
print(ls_tex)
Basically it is not possible to use r'\u' and comment it out with ''' or """. I think this should not be the case, this is an interpreter error.
----------
components: Interpreter Core
messages: 366166
nosy: Elmar Bucher
priority: normal
severity: normal
status: open
title: unable to comment out r'\u' string with triple quote marks
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40250>
_______________________________________
More information about the New-bugs-announce
mailing list