Feature or enhancement
sre_* modules like sre_constants, sre_compile, and sre_parse were deprecated in 3.11 in 1be3260
Our regular deprecation policy is that the deprecated things can be removed in N + 2 release, which is 3.13.
Pitch
Let's remove them if there are no objections.
I guess it is safe to remove them for several reasons:
- https://bugs.python.org/issue47152 clearly states that they were undocumented
- There are now
re._parser, re._constants, and re._compiler modules that are used instead
- They were listed as deprecated in the "what's new" and the warning was pretty clear
The only argument agaist removing them:
- The deprecation warning never says when they will be removed:
>>> import sre_compile
<stdin>:1: DeprecationWarning: module 'sre_compile' is deprecated
I will send a PR once we settle it:
- Either with a better deprecation message
- Or with these modules removed
@vstinner @serhiy-storchaka what's your opinion?
Linked PRs
Feature or enhancement
sre_*modules likesre_constants,sre_compile, andsre_parsewere deprecated in3.11in 1be3260Our regular deprecation policy is that the deprecated things can be removed in N + 2 release, which is
3.13.Pitch
Let's remove them if there are no objections.
I guess it is safe to remove them for several reasons:
re._parser,re._constants, andre._compilermodules that are used insteadThe only argument agaist removing them:
I will send a PR once we settle it:
@vstinner @serhiy-storchaka what's your opinion?
Linked PRs
sre_*modules #135994