PyErr_SetString: Simple String Exception Raising

The most direct way to raise an exception in C extensions, PyErr_SetString takes an exception type and a simple C string message, making it suitable for straightforward error conditions.

Sources

Open the full topic