summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-11-16 10:38:26 (GMT)
committerGitHub <noreply@github.com>2017-11-16 10:38:26 (GMT)
commit05cb728d68a278d11466f9a6c8258d914135c96c (patch)
treeda7fd67bdacf4239d820bcf40cad9f60cab9fb82 /Doc/whatsnew
parent3daaafb700df45716bb55f3a293f88773baf3463 (diff)
downloadcpython-05cb728d68a278d11466f9a6c8258d914135c96c.zip
cpython-05cb728d68a278d11466f9a6c8258d914135c96c.tar.gz
cpython-05cb728d68a278d11466f9a6c8258d914135c96c.tar.bz2
bpo-30349: Raise FutureWarning for nested sets and set operations (#1553)
in regular expressions.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.7.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index a2fea50..9d63540 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -700,6 +700,17 @@ Changes in the Python API
argument ``os.scandir`` instead of ``os.listdir`` when listing the direcory
is failed.
+* Support of nested sets and set operations in regular expressions as in
+ `Unicode Technical Standard #18`_ might be added in the future. This would
+ change the syntax, so to facilitate this change a :exc:`FutureWarning` will
+ be raised in ambiguous cases for the time being.
+ That include sets starting with a literal ``'['`` or containing literal
+ character sequences ``'--'``, ``'&&'``, ``'~~'``, and ``'||'``. To
+ avoid a warning escape them with a backslash.
+ (Contributed by Serhiy Storchaka in :issue:`30349`.)
+
+.. _Unicode Technical Standard #18: https://unicode.org/reports/tr18/
+
Changes in the C API
--------------------