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

Change return types of py.None(), py.NotImplemented() and py.Ellipsis() to typed singletons #3578

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

davidhewitt
Copy link
Member

This PR changes

  • py.None() to return &PyNone
  • py.NotImplemented() to return &PyNotImplemented
  • py.Ellipsis() to return &PyEllipsis

This was discussed in #3577 (comment) where it was suggested there was no needed to make this a standalone PR. I decided to break it out anyway as this is a change that may create some small breakages for users, so I wanted to make the diff for this more visible (and show how PyO3 code adjusted to it), as well as make a migration guide entry for it.

@davidhewitt davidhewitt added this pull request to the merge queue Nov 20, 2023
Merged via the queue into PyO3:main with commit 7b07d6d Nov 20, 2023
35 checks passed
@davidhewitt davidhewitt deleted the typed-helpers branch November 20, 2023 07:54
wyfo pushed a commit to wyfo/pyo3 that referenced this pull request Nov 20, 2023
davidhewitt added a commit to davidhewitt/pyo3 that referenced this pull request Feb 3, 2024
github-merge-queue bot pushed a commit that referenced this pull request Feb 3, 2024
Revert "Merge pull request #3578 from davidhewitt/typed-helpers"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants