Skip to content

bpo-47211: Remove function re.template() and flag re.TEMPLATE - #32300

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:remove-re-template
Apr 6, 2022
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:remove-re-template

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Apr 4, 2022 •

Copy link
Copy Markdown
Member

They were undocumented and never working.

https://bugs.python.org/issue47211

They were undocumented and never working.
@vstinner

vstinner commented Apr 5, 2022

Copy link
Copy Markdown
Member

I search for re.template() and re.TEMPLATE with the regex (?i)re.template and no project of top 5000 PyPI projects use it. So I'm fine with removing it with no deprecation period.

$ ./search_pypi_top.py PYPI-2022-01-26-TOP-5000/ '(?i)re.template' -o re_template

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@serhiy-storchaka
serhiy-storchaka merged commit b09184b into python:main Apr 6, 2022
@serhiy-storchaka
serhiy-storchaka deleted the remove-re-template branch April 6, 2022 16:53
hroncok added a commit to hroncok/cpython that referenced this pull request May 24, 2022
serhiy-storchaka pushed a commit that referenced this pull request May 25, 2022
Revert "bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)"

This reverts commit b09184b.
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 25, 2022
Revert "bpo-47211: Remove function re.template() and flag re.TEMPLATE (pythonGH-32300)"

This reverts commit b09184b.
(cherry picked from commit 16a7e4a)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
miss-islington added a commit that referenced this pull request May 25, 2022
Revert "bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)"

This reverts commit b09184b.
(cherry picked from commit 16a7e4a)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants