whenever i pass exported enum to some cpp exported function from python the error prints - it works but it spams console like crazy
the problem is with file that is located here: "pyside-setup/sources/shiboken6/libshiboken/sbkenum.cpp"
in the function:
EnumValueType getValue(PyObject *enumItem)
{
init_enum();
assert(Enum::check(enumItem));
// PYSIDE-1735: Decide dynamically if new or old enums will be used.
if (useOldEnum)
return reinterpret_cast<SbkEnumObject *>(enumItem)->ob_value;
std::cerr << __FUNCTION__ << ' ' << Shiboken::debugPyObject(enumItem)
<< " err=" << Shiboken::debugPyObject(PyErr_Occurred()) << '\n';
AutoDecRef pyValue(PyObject_GetAttrString(enumItem, "value"));
return PyLong_AsLongLong(pyValue);}
the std:cerr is always executing - either remove it or check if really any error occured.
- resulted from
-
PYSIDE-2136 warning-as-error causes SystemError
-
- Closed
-