diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/re.rst | 3 | ||||
-rw-r--r-- | Doc/whatsnew/3.11.rst | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 8d62e3b..950a5b1 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -299,6 +299,9 @@ The special characters are: :func:`re.compile` function. Flags should be used first in the expression string. + .. versionchanged:: 3.11 + This construction can only be used at the start of the expression. + .. index:: single: (?:; in regular expressions ``(?:...)`` diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 8b3450e..b7e9dc6 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -688,6 +688,11 @@ Changes in the Python API if no locale is specified. (Contributed by Victor Stinner in :issue:`46659`.) +* Global inline flags (e.g. ``(?i)``) can now only be used at the start of + the regular expressions. Using them not at the start of expression was + deprecated since Python 3.6. + (Contributed by Serhiy Storchaka in :issue:`47066`.) + Build Changes ============= |