Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove deprecatedsre_* modules #105456

Closed
Closed
Assignees
sobolevn
Labels
stdlibStandard Library Python modules in the Lib/ directorytopic-regextype-featureA feature request or enhancement
@sobolevn

Description

@sobolevn

Feature or enhancement

sre_* modules likesre_constants,sre_compile, andsre_parse were deprecated in3.11 in1be3260

Our regular deprecation policy is that the deprecated things can be removed in N + 2 release, which is3.13.

Pitch

Let's remove them if there are no objections.

I guess it is safe to remove them for several reasons:

  1. https://bugs.python.org/issue47152 clearly states that they were undocumented
  2. There are nowre._parser,re._constants, andre._compiler modules that are used instead
  3. They were listed as deprecated in the "what's new" and the warning was pretty clear

The only argument agaist removing them:

  1. The deprecation warning never says when they will be removed:
>>>importsre_compile<stdin>:1:DeprecationWarning:module'sre_compile'isdeprecated

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

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytopic-regextype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp