Irit Katriel <iritkatr...@gmail.com> added the comment:
This is the fix: - if (!PyArg_ParseTuple(args, "UO", &message, &exceptions)) { + if (!PyArg_ParseTuple(args, + "UO:BaseExceptionGroup.__new__", + &message, + &exceptions)) { Then we get TypeError: BaseExceptionGroup.__new__() takes exactly 2 arguments (1 given) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46431> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com