| 12457 | return op->func_dict; |
| 12458 | } |
| 12459 | static int |
| 12460 | __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context) |
| 12461 | { |
| 12462 | PyObject *tmp; |
| 12463 | if (unlikely(value == NULL)) { |
| 12464 | PyErr_SetString(PyExc_TypeError, |
| 12465 | "function's dictionary may not be deleted"); |
| 12466 | return -1; |
| 12467 | } |
| 12468 | if (unlikely(!PyDict_Check(value))) { |
| 12469 | PyErr_SetString(PyExc_TypeError, |
| 12470 | "setting function's dictionary to a non-dict"); |
| 12471 | return -1; |
| 12472 | } |
| 12473 | tmp = op->func_dict; |
| 12474 | Py_INCREF(value); |
| 12475 | op->func_dict = value; |
| 12476 | Py_XDECREF(tmp); |
| 12477 | return 0; |
| 12478 | } |
| 12479 | static PyObject * |
| 12480 | __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) |
| 12481 | { |
nothing calls this directly
no outgoing calls
no test coverage detected