Conversation

cdce8p

_PyDict_GetItemStringWithError was deprecated for Python 3.14 in python/cpython#119855.
Use PyDict_GetItemStringRef instead. It was added in 3.13 but is available via pythoncapi_compat.h.

https://docs.python.org/3/c-api/dict.html#c.PyDict_GetItemStringRef

@cdce8pcdce8p added the topic-mypycmypyc bugslabel Oct 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this return a strong reference when the old one returned a borrowed reference?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me.

@JukkaLJukkaL merged commit f63fdb3 into python:master Oct 16, 2024
13 checks passed
@cdce8pcdce8p deleted the replace-deprecated-cpython-function-2 branch October 16, 2024 14:53
hauntsaninja added a commit to hauntsaninja/mypy that referenced this pull request Dec 28, 2024
hauntsaninja added a commit that referenced this pull request Dec 28, 2024
Fixes mypyc/mypyc#1078

Introduced in #17930

See the first commit to see the bug (wrong condition)

---------

Co-authored-by: Marc Mueller <[email protected]>
svalentin pushed a commit that referenced this pull request Dec 30, 2024
Fixes mypyc/mypyc#1078

Introduced in #17930

See the first commit to see the bug (wrong condition)

---------

Co-authored-by: Marc Mueller <[email protected]>
Sign up for free to join this conversation on . Already have an account? Sign in to comment
topic-mypycmypyc bugs
None yet

Successfully merging this pull request may close these issues.