Hello,
I want to create an instance of a Python class defined in the __main__ scope with the C API.
For example, the class is called MyClass and is defined as follows:
class MyClass:
def __init__(self):
pass
The class type lives under __main__ scope.
Within the C application, I want to create an instance of this class. This could have been simply possible with PyInstance_New as it takes class name. However this function is not available in Python3.
Any help or suggestions for alternatives are appreciated.
Thanks, Paul