Skip to content
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

gh-124872: Change PyContext_WatchCallback to take PyObject #124737

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

rhansen
Copy link
Contributor

@rhansen rhansen commented Sep 28, 2024

The PyContext struct is not intended to be public, and users of the API don't need anything more specific than PyObject. Also see gh-78943.

I don't think a NEWS blurb is needed because this amends a feature that is new to v3.14 so the existing blurb should suffice.

cc @fried


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

@bedevere-app
Copy link

bedevere-app bot commented Sep 28, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app
Copy link

bedevere-app bot commented Sep 28, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app
Copy link

bedevere-app bot commented Oct 1, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@rhansen rhansen changed the title gh-119333: Change PyContext_WatchCallback to take PyObject gh-124872: Change PyContext_WatchCallback to take PyObject Oct 1, 2024
@1st1 1st1 added the skip news label Oct 12, 2024
@1st1
Copy link
Member

1st1 commented Oct 12, 2024

@rhansen please rebase

The PyContext struct is not intended to be public, and users of the
API don't need anything more specific than PyObject.  Also see
pythongh-78943.
Copy link
Member

@1st1 1st1 left a comment

Choose a reason for hiding this comment

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

Good refactoring and jives well with the idea that C API should expose (PyObject*) for objects and not their concrete structs.

@1st1 1st1 merged commit 330c527 into python:main Oct 12, 2024
39 checks passed
@rhansen rhansen deleted the gh-119333-context-watch branch October 12, 2024 21:02
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.

2 participants