[issue47152] Reorganize the re module sources

STINNER Victor report at bugs.python.org
Sat Apr 2 08:05:55 EDT 2022


STINNER Victor <vstinner at python.org> added the comment:

It's funny to still see mentions of "experimental stuff" in Python 3.11 (2022), whereas these "experimental stuff" are there for 20 years.

*Maybe* it's time to consider that re.template() and re.Scanner are no longer experimental? Maybe change their status to alpha or beta? :-D


commit 770617b23e286f1147f9480b5f625e88e7badd50
Author: Fredrik Lundh <fredrik at pythonware.com>
Date:   Sun Jan 14 15:06:11 2001 +0000

    SRE fixes for 2.1 alpha:

+# sre extensions (experimental, don't rely on these)
+T = TEMPLATE = sre_compile.SRE_FLAG_TEMPLATE # disable backtracking


commit 7cafe4d7e466996d5fc32e871fe834e0e0c94282
Author: Fredrik Lundh <fredrik at pythonware.com>
Date:   Sun Jul 2 17:33:27 2000 +0000

    - actually enabled charset anchors in the engine (still not
      used by the code generator)
    
    - changed max repeat value in engine (to match earlier array fix)
    
    - added experimental "which part matched?" mechanism to sre; see
      http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954
      or python-dev for details.


+# experimental stuff (see python-dev discussions for details)
+
+class Scanner:
(...)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47152>
_______________________________________


More information about the Python-bugs-list mailing list