I wonder how I can create a PyObject
in C++ and then return it to Python.
Sadly the documentation is not very explicit about it.
There is no PyObject_Create
so I wonder whether allocating sizeof(PyObject)
via PyObject_Malloc
and initializing the struct is sufficient.
For now I only need an object with functions attached.