Skip to content

[mypyc] Avoid uses of _PyObject_CallMethodOneArg on 3.13#17526

Merged
hauntsaninja merged 2 commits into
masterfrom
mypyc-3.13-dict
Aug 14, 2024
Merged

[mypyc] Avoid uses of _PyObject_CallMethodOneArg on 3.13#17526
hauntsaninja merged 2 commits into
masterfrom
mypyc-3.13-dict

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Jul 14, 2024

It's no longer available in CPython 3.13 betas.

This fixes some dict primitives on 3.13.

Work on mypyc/mypyc#1056.

JukkaL added 2 commits July 14, 2024 13:10
It's no longer available in CPython 3.13 betas.

This fixes some dict primitives on 3.13.

Work on mypyc/mypyc#1056.
Comment on lines 401 to 403
_PyObject_CallMethodIdObjArgs((self), (name), NULL)
#define _PyObject_CallMethodIdOneArg(self, name, arg) \
_PyObject_CallMethodIdObjArgs((self), (name), (arg), NULL)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe we should remove _PyObject_CallMethodIdNoArg and _PyObject_CallMethodIdOneArg here. _PyObject_CallMethodIdObjArgs is no longer exported in Python 3.13.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Never mind, those are only used for < 3.9 anyway.

@hauntsaninja hauntsaninja merged commit fe15ee6 into master Aug 14, 2024
@hauntsaninja hauntsaninja deleted the mypyc-3.13-dict branch August 14, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants