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

gh-140824: Fix _Py_DumpExtensionModules() to ignore sub-modules#144339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
vstinner wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromvstinner:dump_ext_modules

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedJan 30, 2026
edited by bedevere-appbot
Loading

Ignore "math.integer" extension if "math" is in
sys.stdlib_module_names.

Ignore "math.integer" extension if "math" is insys.stdlib_module_names.

@skip_segfault_on_android
def test_dump_ext_modules(self):
# Disable sys.stdlib_module_names

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This just duplicates the below, "Don't filter stdlib module names," IMO we don't need both.

Comment on lines +421 to +422
match = re.search(r'^Extension modules:', stderr, re.MULTILINE)
self.assertIsNone(match)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
match=re.search(r'^Extension modules:',stderr,re.MULTILINE)
self.assertIsNone(match)
self.assertNotIn('Extension modules:',stderr)

Why not just so?

@@ -0,0 +1,3 @@
When :mod:`faulthandler` dumps the list of third-party extension modules,
ignore ``math.integer`` sub-module since ``math`` package is part of
Copy link
Member

@StanFromIrelandStanFromIrelandJan 30, 2026
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can we be more general, e.g. "ignore sub-modules of packages in ..."? Otherwise it makes it seem like only the one specific case is affected.

}
assert(key_len > len);

// Ignore "math.integer" if key starts with "math."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
// Ignore"math.integer" if key starts with "math."
// Ignoresub-modules of stdlib packages

Same as above.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@StanFromIrelandStanFromIrelandStanFromIreland left review comments

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@ZeroIntensityZeroIntensityAwaiting requested review from ZeroIntensityZeroIntensity is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@vstinner@StanFromIreland

[8]ページ先頭

©2009-2026 Movatter.jp