Skip to content

Commit 7ceca5f

Browse files
authored
Remove old marcos for _PyObject_CallMethod.. (#18555)
Mypyc requires Python 3.9+. The functions are available from cpython itself.
1 parent e046a54 commit 7ceca5f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

mypyc/lib-rt/pythonsupport.h

-10
Original file line numberDiff line numberDiff line change
@@ -392,16 +392,6 @@ _CPyObject_HasAttrId(PyObject *v, _Py_Identifier *name) {
392392
#define _CPyObject_HasAttrId _PyObject_HasAttrId
393393
#endif
394394

395-
#if PY_VERSION_HEX < 0x03090000
396-
// OneArgs and NoArgs functions got added in 3.9
397-
#define _PyObject_CallMethodIdNoArgs(self, name) \
398-
_PyObject_CallMethodIdObjArgs((self), (name), NULL)
399-
#define _PyObject_CallMethodIdOneArg(self, name, arg) \
400-
_PyObject_CallMethodIdObjArgs((self), (name), (arg), NULL)
401-
#define PyObject_CallMethodOneArg(self, name, arg) \
402-
PyObject_CallMethodObjArgs((self), (name), (arg), NULL)
403-
#endif
404-
405395
#if CPY_3_12_FEATURES
406396

407397
// These are copied from genobject.c in Python 3.12

0 commit comments

Comments
 (0)