def failure_code_init(sub):
 return ('{\n        if (!PyErr_Occurred()) {\n            PyErr_SetString(PyExc_RuntimeError,\n                "Unexpected error in an Op\'s C code. "\n                "No Python exception was set.");\n            }\n        return %(id)d;\n}' % sub)

def failure_code_init ( sub ) : return ( '{\n        if (!PyErr_Occurred()) {\n            PyErr_SetString(PyExc_RuntimeError,\n                "Unexpected error in an Op\'s C code. "\n                "No Python exception was set.");\n            }\n        return %(id)d;\n}' % sub )
code for failure in the struct init .