FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-117953: Track All Extension Modules by ericsnowcurrently · Pull Request #118156 · python/cpython · GitHub

/ cpython Public

gh-117953: Track All Extension Modules - #118156

Draft
ericsnowcurrently wants to merge 44 commits into
python:mainfrom
ericsnowcurrently:track-all-ext-modules
Draft

gh-117953: Track All Extension Modules#118156
ericsnowcurrently wants to merge 44 commits into
python:mainfrom
ericsnowcurrently:track-all-ext-modules

Conversation

ericsnowcurrently commented Apr 22, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

When an extension module is loaded, the init function is looked up and run. If that doesn't fail then the module is "fixed up", which includes adding its PyModuleDef to a global mapping that is used if the module is re-loaded. However, that has not applied to multi-phase init modules. Adding those modules to the global mapping would identify that we already loaded the module (or at least tried), as well as the module's kind. That's especially useful for a follow up PR I have planned.

(This is based on gh-118116. For the diff, see my track-all-ext-modules branch.)

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL