Skip to content

gh-148320: document that import sys.monitoring raises ModuleNotFoundError#148365

Merged
picnixz merged 4 commits intopython:mainfrom
jonathandung:patch-1
Apr 11, 2026
Merged

gh-148320: document that import sys.monitoring raises ModuleNotFoundError#148365
picnixz merged 4 commits intopython:mainfrom
jonathandung:patch-1

Conversation

@jonathandung
Copy link
Copy Markdown
Contributor

@jonathandung jonathandung commented Apr 10, 2026

@picnixz picnixz added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Apr 11, 2026
@picnixz picnixz changed the title gh-148320: Explicitly tell users that import sys.monitoring will emit a ModuleNotFoundError gh-148320: document that import sys.monitoring raises ModuleNotFoundError Apr 11, 2026
@picnixz picnixz merged commit d7c9f18 into python:main Apr 11, 2026
38 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Apr 11, 2026
@miss-islington-app
Copy link
Copy Markdown

Thanks @jonathandung for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 11, 2026
…NotFoundError` (pythonGH-148365)

(cherry picked from commit d7c9f18)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@miss-islington-app
Copy link
Copy Markdown

Sorry, @jonathandung and @picnixz, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker d7c9f1877cbd733d6c0fda395a9fcf78171f51b0 3.13

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 11, 2026

GH-148385 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Apr 11, 2026
@picnixz
Copy link
Copy Markdown
Member

picnixz commented Apr 11, 2026

@jonathandung Can you make the backport (unless sys.monitoring is not there in 3.13) please?

picnixz added a commit that referenced this pull request Apr 11, 2026
…eNotFoundError` (GH-148365) (#148385)

gh-148320: document that `import sys.monitoring` raises `ModuleNotFoundError` (GH-148365)
(cherry picked from commit d7c9f18)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Clarify that import sys.monitoring fails instead of being unnecessary

2 participants