Skip to content

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

Merged
vstinner merged 5 commits into
python:mainfrom
brijkapadia:codeobject-richcomp
Mar 23, 2026
Merged

vstinner merged 5 commits into
python:mainfrom
brijkapadia:codeobject-richcomp

Conversation

@brijkapadia

@brijkapadia brijkapadia commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor
Comment thread Lib/test/test_code.py Resolved
Comment thread Lib/test/test_code.py Resolved
brijkapadia and others added 2 commits March 20, 2026 14:19
Co-authored-by: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

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
46 checks passed
@vstinner

Copy link
Copy Markdown
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)
@brijkapadia
brijkapadia deleted the codeobject-richcomp branch March 24, 2026 09:00
clin1234 pushed a commit to clin1234/cpython that referenced this pull request Apr 16, 2026
…ect_RichCompareBool` fails (python#146200)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
…ect_RichCompareBool` fails (python#146200)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants