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 vstinner
Recipients Nicholas Willhite, ezio.melotti, steven.daprano, vstinner
Date 2021-06-04.11:47:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622807223.3.0.932003857923.issue44308@roundup.psfhosted.org>
In-reply-to
Content
You can use br"\n" to get 2 bytes: b"\\" and b"n".

IMO it's the best practice, to use raw strings for regular expressions.

Converting a regular string to a raw string sounds like a bad idea.
History
Date User Action Args
2021-06-04 11:47:03vstinnersetrecipients: + vstinner, ezio.melotti, steven.daprano, Nicholas Willhite
2021-06-04 11:47:03vstinnersetmessageid: <1622807223.3.0.932003857923.issue44308@roundup.psfhosted.org>
2021-06-04 11:47:03vstinnerlinkissue44308 messages
2021-06-04 11:47:02vstinnercreate