This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ezio.melotti, mrabarnett, serhiy.storchaka
Date 2022-04-04.08:56:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1649062573.34.0.575167973104.issue47211@roundup.psfhosted.org>
In-reply-to
Content
They were added in 436c3d58a2570f3b599e59b4071f944f774ec441 (between 1.6a2 and 2.0), but the purpose is not known. See also https://mail.python.org/archives/list/python-dev@python.org/message/DVSQGM5LO4TK63C63H6KQ6XBTBQGFLEN/. The feature was not fully implemented, and it was disabled short time later in 29c4ba9ada44d62988c62c85c8046985f10a1c85. Currently the only effect of this flag is that repetition operators (+, *, ?, {}) do not work. A comment was added in 3562f1176403653ebfbef6275d449ad42d1b843a:

SRE_FLAG_TEMPLATE = 1 # template mode (disable backtracking)

It's all. I guess it could have some relation to possessive repetition operators, except that it is a global flag.

I think it should be removed without deprecation because it never really worked and never was documented.
History
Date User Action Args
2022-04-04 08:56:13serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett
2022-04-04 08:56:13serhiy.storchakasetmessageid: <1649062573.34.0.575167973104.issue47211@roundup.psfhosted.org>
2022-04-04 08:56:13serhiy.storchakalinkissue47211 messages
2022-04-04 08:56:13serhiy.storchakacreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.