gh-146199: Fix error handling in code_richcompare when PyObject_RichCompareBool fails#146200
Merged
vstinner merged 5 commits intopython:mainfrom Mar 23, 2026
Merged
gh-146199: Fix error handling in code_richcompare when PyObject_RichCompareBool fails#146200vstinner merged 5 commits intopython:mainfrom
code_richcompare when PyObject_RichCompareBool fails#146200vstinner merged 5 commits intopython:mainfrom
Conversation
…ect_RichCompareBool` fails
vstinner
reviewed
Mar 20, 2026
Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner
approved these changes
Mar 21, 2026
Misc/NEWS.d/next/Core_and_Builtins/2026-03-20-12-26-24.gh-issue-146199.vV8V9s.rst
Show resolved
Hide resolved
Member
|
Thanks for your fix. I merged your PR. I don't think that it's worth it to backport the change, it's a corner case which shouldn't occur in practice. |
CuriousLearner
added a commit
to CuriousLearner/cpython
that referenced
this pull request
Mar 24, 2026
…on into fix-pythongh-138577 * 'fix-pythongh-138577' of github.com:CuriousLearner/cpython: pythongh-146202: Create tmp_dir in regrtest worker (python#146347) pythongh-144319: obtain SeLockMemoryPrivilege on Windows (python#144928) pythongh-146199: Fix error handling in `code_richcompare` when `PyObject_RichCompareBool` fails (python#146200) pythongh-146197: Include a bit more information in sys._emscripten_info.runtime (python#146346) pythongh-135871: Reload lock internal state while spinning in `PyMutex_LockTimed` (pythongh-146064) pythongh-145719: Add `.efi` file detection in `mimetypes` (python#145720)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
code_richcompareswallows errors #146199