96e7b39
python: Generalize set_value_error as set_error utility function Allow to pass it PyExc_XXX object as well for raising different exception types along with message and tested object for printout.