Skip to content

gh-146199: Fix error handling in code_richcompare when PyObject_RichCompareBool fails#146200

Merged
vstinner merged 5 commits intopython:mainfrom
bkap123:codeobject-richcomp
Mar 23, 2026
Merged

gh-146199: Fix error handling in code_richcompare when PyObject_RichCompareBool fails#146200
vstinner merged 5 commits intopython:mainfrom
bkap123:codeobject-richcomp

Conversation

@bkap123
Copy link
Contributor

@bkap123 bkap123 commented Mar 20, 2026

bkap123 and others added 2 commits March 20, 2026 14:19
Co-authored-by: Victor Stinner <vstinner@python.org>
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.

@vstinner vstinner merged commit e017971 into python:main Mar 23, 2026
50 checks passed
@vstinner
Copy link
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)
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.

3 participants