Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Oct 13, 2024

_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

@cdce8p cdce8p added the topic-mypyc mypyc bugs label Oct 13, 2024
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

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?

Copy link
Collaborator

@JukkaL JukkaL left a comment

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.

@JukkaL JukkaL merged commit f63fdb3 into python:master Oct 16, 2024
13 checks passed
@cdce8p cdce8p 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 GitHub. Already have an account? Sign in to comment
Labels
topic-mypyc mypyc bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants