Skip to content

gh-111789: Simplify ceval.c by using PyDict_GetItemRef() - #111980

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:use-dict_getitemref-ceval
Nov 14, 2023
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:use-dict_getitemref-ceval

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Nov 11, 2023 •

Copy link
Copy Markdown
Member

@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

Comment thread Python/ceval.c
PyObject *
_PyEval_GetBuiltin(PyObject *name)
{
PyThreadState *tstate = _PyThreadState_GET();

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.

interesting to see that tstate is not needed anymore ;-)

@serhiy-storchaka
serhiy-storchaka merged commit 16055c1 into python:main Nov 14, 2023
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
@serhiy-storchaka
serhiy-storchaka deleted the use-dict_getitemref-ceval branch July 1, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants