This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Elmar Bucher
Recipients Elmar Bucher
Date 2020-04-10.23:03:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586559791.68.0.297747169601.issue40250@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-04-10 23:03:11Elmar Buchersetrecipients: + Elmar Bucher
2020-04-10 23:03:11Elmar Buchersetmessageid: <1586559791.68.0.297747169601.issue40250@roundup.psfhosted.org>
2020-04-10 23:03:11Elmar Bucherlinkissue40250 messages
2020-04-10 23:03:11Elmar Buchercreate