File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -503,11 +503,10 @@ must be expressed with escapes.
503
503
single: r"; raw string literal
504
504
505
505
Both string and bytes literals may optionally be prefixed with a letter ``'r' ``
506
- or ``'R' ``; such strings are called :dfn: `raw strings ` and treat backslashes as
507
- literal characters. As a result, in string literals, ``'\U' `` and ``'\u' ``
508
- escapes in raw strings are not treated specially. Given that Python 2.x's raw
509
- unicode literals behave differently than Python 3.x's the ``'ur' `` syntax
510
- is not supported.
506
+ or ``'R' ``; such constructs are called :dfn: `raw string literals `
507
+ and :dfn: `raw bytes literals ` respectively and treat backslashes as
508
+ literal characters. As a result, in raw string literals, ``'\U' `` and ``'\u' ``
509
+ escapes are not treated specially.
511
510
512
511
.. versionadded :: 3.3
513
512
The ``'rb' `` prefix of raw bytes literals has been added as a synonym
You can’t perform that action at this time.
0 commit comments