summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-25 06:32:20 (GMT)
committerGitHub <noreply@github.com>2022-05-25 06:32:20 (GMT)
commit74b205b3eb6432d81d745da1dae4359e42ae76d4 (patch)
treef8c35e40543963fbc51066a94cde7b3425ba01ef /Doc/whatsnew
parent7a5f190c9fa7c6cbd334dfea9ae6032ac886dd89 (diff)
downloadcpython-74b205b3eb6432d81d745da1dae4359e42ae76d4.zip
cpython-74b205b3eb6432d81d745da1dae4359e42ae76d4.tar.gz
cpython-74b205b3eb6432d81d745da1dae4359e42ae76d4.tar.bz2
gh-92728: Restore re.template, but deprecate it (GH-93161)
Revert "bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)" This reverts commit b09184bf05b07b77c5ecfedd4daa846be3cbf0a9. (cherry picked from commit 16a7e4a0b75080275bf12cfb71d54b01d85099b2) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 12b4c22..c7ff6ca 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -1273,6 +1273,11 @@ Deprecated
is now deprecated. Support will be removed in Python 3.13. (Contributed by
Jingchen Ye in :gh:`90224`.)
+* The :func:`re.template` function and the corresponding :const:`re.TEMPLATE`
+ and :const:`re.T` flags are deprecated, as they were undocumented and
+ lacked an obvious purpose. They will be removed in Python 3.13.
+ (Contributed by Serhiy Storchaka and Miro Hrončok in :gh:`92728`.)
+
Pending Removal in Python 3.12
==============================