Skip to content

Commit

Permalink
Python 3.12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Oct 12, 2022
1 parent e42818c commit 7e2336a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/nb_internals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ static PyType_Slot nb_func_slots[] = {
{ Py_tp_dealloc, (void *) nb_func_dealloc },
{ Py_tp_getattro, (void *) nb_func_getattro },
{ Py_tp_new, (void *) PyType_GenericNew },
#if PY_VERSION_HEX < 0x030C0000
{ Py_tp_call, (void *) PyVectorcall_Call },
#endif
{ 0, nullptr }
};

Expand All @@ -123,9 +121,7 @@ static PyType_Slot nb_method_slots[] = {
{ Py_tp_getattro, (void *) nb_func_getattro },
{ Py_tp_descr_get, (void *) nb_method_descr_get },
{ Py_tp_new, (void *) PyType_GenericNew },
#if PY_VERSION_HEX < 0x030C0000
{ Py_tp_call, (void *) PyVectorcall_Call },
#endif
{ 0, nullptr }
};

Expand All @@ -147,9 +143,7 @@ static PyMemberDef nb_bound_method_members[] = {
static PyType_Slot nb_bound_method_slots[] = {
{ Py_tp_members, (void *) nb_bound_method_members },
{ Py_tp_dealloc, (void *) nb_bound_method_dealloc },
#if PY_VERSION_HEX < 0x030C0000
{ Py_tp_call, (void *) PyVectorcall_Call },
#endif
{ 0, nullptr }
};

Expand Down

0 comments on commit 7e2336a

Please sign in to comment.