mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Applying modified version of patch #1018386, which fixes
some escaping bugs in SRE.
This commit is contained in:
parent
ab9351bf36
commit
a01a2ee933
3 changed files with 91 additions and 43 deletions
|
@ -387,7 +387,8 @@ also accepted by the regular expression parser:
|
|||
|
||||
Octal escapes are included in a limited form: If the first digit is a
|
||||
0, or if there are three octal digits, it is considered an octal
|
||||
escape. Otherwise, it is a group reference.
|
||||
escape. Otherwise, it is a group reference. As for string literals,
|
||||
octal escapes are always at most three digits in length.
|
||||
|
||||
|
||||
% Note the lack of a period in the section title; it causes problems
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue