New submission from Elmar Bucher :
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 \u 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
<https://bugs.python.org/issue40250>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com