Skip to content

Conversation

@encukou
Copy link
Member

@encukou encukou commented Oct 24, 2025

See the definition:

PyModuleDef*
PyModule_GetDef(PyObject* m)
{
if (!PyModule_Check(m)) {
PyErr_BadArgument();
return NULL;
}
return _PyModule_GetDef(m);
}


📚 Documentation preview 📚: https://cpython-previews--140529.org.readthedocs.build/

Copy link
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

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

LGTM

@encukou encukou merged commit 289360a into python:main Oct 24, 2025
50 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Oct 24, 2025
@encukou encukou deleted the module_getdef_errordoc branch October 24, 2025 13:28
@miss-islington-app
Copy link

Thanks @encukou for the PR 🌮🎉.. 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 Oct 24, 2025
… an exception (pythonGH-140529)

(cherry picked from commit 289360a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 24, 2025
… an exception (pythonGH-140529)

(cherry picked from commit 289360a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Oct 24, 2025

GH-140545 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 Oct 24, 2025
@bedevere-app
Copy link

bedevere-app bot commented Oct 24, 2025

GH-140546 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Oct 24, 2025
encukou added a commit that referenced this pull request Oct 24, 2025
…setting an exception (GH-140529) (GH-140545)

(cherry picked from commit 289360a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
encukou added a commit that referenced this pull request Oct 24, 2025
…setting an exception (GH-140529) (GH-140546)

(cherry picked from commit 289360a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants