Issue 577000: Wrong description for PyErr_Restore (original) (raw)

The description for PyErr_Restore() says: "The exception type should be a string or class; if it is a class, the value should be an instance of that class."

This is apparently wrong, if you call PyErr_SetString() for example, the value is a string object, and the exception type is whatever has been passed to the call.

I don't know the rules, so I cannot supply a patch.