Skip to content

gh-134160: Use PyModuleDef.m_free in the example module xxlimited #135174

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 6, 2025

Conversation

encukou
Copy link
Member

@encukou encukou commented Jun 5, 2025

The comment about free not being necessary is wrong. Like classes, modules need both clear and free.

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
@encukou encukou enabled auto-merge (squash) June 6, 2025 11:48
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.

You should merge main into your branch to retrieve the test_syntax fix.

@encukou encukou merged commit 1adca08 into python:main Jun 6, 2025
38 checks passed
@miss-islington-app
Copy link

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 6, 2025
…ed (pythonGH-135174)

(cherry picked from commit 1adca08)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 6, 2025
…ed (pythonGH-135174)

(cherry picked from commit 1adca08)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Jun 6, 2025

GH-135213 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 Jun 6, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jun 6, 2025

GH-135214 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 Jun 6, 2025
encukou added a commit that referenced this pull request Jun 6, 2025
…ted (GH-135174) (GH-135213)

gh-134160: Use PyModuleDef.m_free in the example module xxlimited (GH-135174)
(cherry picked from commit 1adca08)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
@encukou encukou deleted the xxlimited-free branch June 7, 2025 09:03
encukou added a commit that referenced this pull request Jun 7, 2025
…ted (GH-135174) (GH-135214)

gh-134160: Use PyModuleDef.m_free in the example module xxlimited (GH-135174)
(cherry picked from commit 1adca08)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants