Skip to content

Commit 9c95baf

Browse files
committed
Add News entry
1 parent 386d148 commit 9c95baf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Doc/library/re.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ The special characters are:
162162

163163
If you're not using a raw string to express the pattern, remember that Python
164164
also uses the backslash as an escape sequence in string literals; if the escape
165-
sequence isn't recognized by Python's parser, it will generate a
165+
sequence isn't recognized by Python's parser, it will generate a
166166
:exc:`DeprecationWarning` and in the future this will become a :exc:`Syntaxerror`.
167-
However, if Python would recognize the resulting sequence, the backslash should
168-
be repeated twice. This is complicated and hard to understand, so it's highly
167+
However, if Python would recognize the resulting sequence, the backslash should
168+
be repeated twice. This is complicated and hard to understand, so it's highly
169169
recommended that you use raw strings for all but the simplest expressions.
170170

171171
``[]``
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add comment in the re module about the fact that a backslash-character pair
2+
that is not a valid escape sequence now generates a DeprecationWarning.
3+
Patch by Pablo Galindo.

0 commit comments

Comments
 (0)