Use sys.settrace instead of PyEval_SetTrace for better compatibility

This commit is contained in:
baldurk
2026-08-13 17:46:39 +01:00
parent c15a5c2c66
commit 9fc3c3cdcd
2 changed files with 103 additions and 42 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ private:
static void outstream_del(PyObject *self);
static PyObject *outstream_write(PyObject *self, PyObject *args);
static PyObject *outstream_flush(PyObject *self, PyObject *args);
static int traceEvent(PyObject *obj, PyFrameObject *frame, int what, PyObject *arg);
static PyObject *outstream_trace(PyObject *self, PyObject *args, PyObject *kwargs);
};
template <>