Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[mypyc] Replace deprecated _PyDict_GetItemStringWithError#17930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@cdce8p
Copy link
Collaborator

@cdce8pcdce8p commentedOct 13, 2024
edited
Loading

_PyDict_GetItemStringWithError was deprecated for Python 3.14 inpython/cpython#119855.
UsePyDict_GetItemStringRef instead. It was added in 3.13 but is available viapythoncapi_compat.h.

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

@cdce8pcdce8p added the topic-mypycmypyc bugs labelOct 13, 2024
Copy link
Collaborator

@hauntsaninjahauntsaninja 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?

cdce8p reacted with thumbs up emoji
Copy link
Collaborator

@JukkaLJukkaL 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.

@JukkaLJukkaL merged commitf63fdb3 intopython:masterOct 16, 2024
@cdce8pcdce8p deleted the replace-deprecated-cpython-function-2 branchOctober 16, 2024 14:53
hauntsaninja added a commit to hauntsaninja/mypy that referenced this pull requestDec 28, 2024
hauntsaninja added a commit that referenced this pull requestDec 28, 2024
Fixesmypyc/mypyc#1078Introduced in#17930See the first commit to see the bug (wrong condition)---------Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
svalentin pushed a commit that referenced this pull requestDec 30, 2024
Fixesmypyc/mypyc#1078Introduced in#17930See the first commit to see the bug (wrong condition)---------Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hauntsaninjahauntsaninjahauntsaninja left review comments

@JukkaLJukkaLJukkaL approved these changes

Assignees

No one assigned

Labels

topic-mypycmypyc bugs

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@cdce8p@JukkaL@hauntsaninja

[8]ページ先頭

©2009-2025 Movatter.jp