-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Link: https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
Both string and bytes literals may optionally be prefixed with a letter 'r' or 'R'; such strings are called raw strings
I don't think that it is a correct wording. You cannot call rb'' as a "raw string", it is called "raw bytes". Or "raw bytes literal". Just like the docs docs in the next paragraph:
The 'rb' prefix of raw bytes literals has been added as a synonym of 'br'.
I propose to fix this by using this phrase:
Both string and bytes literals may optionally be prefixed with a letter 'r' or 'R'; such objects are called raw strings and raw bytes respectively.
Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir