Author serhiy.storchaka
Recipients ncoghlan, pitrou, serhiy.storchaka
Date 2016-10-19.08:23:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This helper is convenient in many cases, but it is very limited. It raises an exception with single string argument. It doesn't work in cases when the exception doesn't take arguments (PyErr_SetNone) or takes multiple or non-string arguments (PyErr_SetFromErrnoWithFilenameObject, PyErr_SetImportError). I think for public API we need more general solution. Something like this:

    PyObject *cause = get_current_exception();
    PyErr_SetImportError(msg, name, path);
Date User Action Args
2016-10-19 08:23:27serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, pitrou
2016-10-19 08:23:27serhiy.storchakasetmessageid: <>
2016-10-19 08:23:27serhiy.storchakalinkissue23188 messages
2016-10-19 08:23:27serhiy.storchakacreate