I am writing a simple C wrapper for a Python module. I need to create a new PyObject* that represents None . I canβt figure out how to do this. Is there a simple function that will return PyObject* pointing to None , similar to how PyTuple_New returns PyObject* pointing to a new tuple, or PyString_FromString` returns one pointing to a python string?
Note Is it possible that when calling a function as shown below, C NULL will be executed? Example:
source share