KEMBAR78
gh-133644: remove deprecated `PyImport_ImportModuleNoBlock` by picnixz · Pull Request #133655 · python/cpython · GitHub
Skip to content

Conversation

@picnixz
Copy link
Member

@picnixz picnixz commented May 8, 2025

@vstinner
Copy link
Member

vstinner commented May 8, 2025

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");

Copy link
Member

@vstinner vstinner left a comment

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
43 checks passed
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants