disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions

This commit is contained in:
wmayer
2018-04-29 11:00:28 +02:00
parent ebadc3ae9a
commit 5e484d0a92
4 changed files with 12 additions and 10 deletions

View File

@@ -62,10 +62,11 @@ namespace Py
explicit Exception ()
{}
Exception (const std::string& reason)
{
PyErr_SetString (Py::_Exc_RuntimeError(), reason.c_str());
}
// This overloaded constructor will be removed in future PyCXX versions
//Exception (const std::string& reason)
//{
// PyErr_SetString (Py::_Exc_RuntimeError(), reason.c_str());
//}
Exception (PyObject* exception, const std::string& reason)
{