How does PyErr_SetString handle the passed in c-string? e.g. is it safe to do:
{
int age = 12;
std::stringstream ostr; ostr << "I'm " << age << " years old and what is this?";
PyErr_SetString(PyExc_RuntimeError, ostr.str().c_str());
}
Obviously https://docs.python.org/2/c-api/exceptions.html#PyErr_SetString says that it's 'converted to a string object', but does that necessarily entail that the contents will be copied?