Skip to content

gh-133644: remove deprecated PyImport_ImportModuleNoBlock - #133655

Merged
picnixz merged 6 commits into
python:mainfrom
picnixz:cleanup/315/deprecated-import-133644
May 8, 2025
Merged

picnixz merged 6 commits into
python:mainfrom
picnixz:cleanup/315/deprecated-import-133644

Conversation

@picnixz

@picnixz picnixz commented May 8, 2025 •

Copy link
Copy Markdown
Member
Comment thread Modules/_testlimitedcapi/import.c Resolved
Comment thread Doc/whatsnew/3.15.rst Resolved
@vstinner

vstinner commented May 8, 2025

Copy link
Copy Markdown
Member

A search on PyPI top 8,000 projects found usage in 2 projects:

  • dukpy (0.5.0)
  • google-cloud-profiler (4.1.0)
dukpy-0.5.0.tar.gz: dukpy-0.5.0/src/capsulethunk.h: object = PyImport_ImportModuleNoBlock(trace);

google-cloud-profiler-4.1.0.tar.gz: google-cloud-profiler-4.1.0/googlecloudprofiler/src/log.cc: logging = PyImport_ImportModuleNoBlock("logging");

@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

@picnixz
picnixz enabled auto-merge (squash) May 8, 2025 12:57
@picnixz
picnixz merged commit a2c4467 into python:main May 8, 2025
@picnixz
picnixz deleted the cleanup/315/deprecated-import-133644 branch May 8, 2025 13:13
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants