Skip to content

Commit 3fa4458

Browse files
committed
Sync CPPExcInstance
1 parent 5925854 commit 3fa4458

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/CPPExcInstance.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static PyObject* ep_new(PyTypeObject* subtype, PyObject* args, PyObject* kwds)
2929
PyObject* ulc = PyObject_GetAttr((PyObject*)subtype, PyStrings::gUnderlying);
3030
excobj->fCppInstance = PyType_Type.tp_call(ulc, args, kwds);
3131
if (!excobj->fCppInstance) {
32-
// if this fails, then the contruction may have been attempted from a string
32+
// if this fails, then the construction may have been attempted from a string
3333
// (e.g. from PyErr_Format); if so, drop the proxy and use fTopMessage instead
3434
PyErr_Clear();
3535
if (PyTuple_GET_SIZE(args) == 1) {
@@ -282,6 +282,12 @@ PyTypeObject CPPExcInstance_Type = {
282282
#if PY_VERSION_HEX >= 0x03040000
283283
, 0 // tp_finalize
284284
#endif
285+
#if PY_VERSION_HEX >= 0x03080000
286+
, 0 // tp_vectorcall
287+
#endif
288+
#if PY_VERSION_HEX >= 0x030c0000
289+
, 0 // tp_watched
290+
#endif
285291
};
286292

287293
} // namespace CPyCppyy

0 commit comments

Comments
 (0)