File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1249,15 +1249,15 @@ The ``defining_class`` converter is not compatible with ``__init__`` and ``__new
1249
1249
methods, which cannot use the ``METH_METHOD `` convention.
1250
1250
1251
1251
It is not possible to use ``defining_class `` with slot methods. In order to
1252
- fetch the module state from such methods, use `` _PyType_GetModuleByDef `` to
1253
- look up the module and then :c:func: `PyModule_GetState ` to fetch the module
1252
+ fetch the module state from such methods, use :c:func: ` PyType_GetModuleByDef `
1253
+ to look up the module and then :c:func: `PyModule_GetState ` to fetch the module
1254
1254
state. Example from the ``setattro `` slot method in
1255
1255
``Modules/_threadmodule.c ``::
1256
1256
1257
1257
static int
1258
1258
local_setattro(localobject *self, PyObject *name, PyObject *v)
1259
1259
{
1260
- PyObject *module = _PyType_GetModuleByDef (Py_TYPE(self), &thread_module);
1260
+ PyObject *module = PyType_GetModuleByDef (Py_TYPE(self), &thread_module);
1261
1261
thread_module_state *state = get_thread_state(module);
1262
1262
...
1263
1263
}
You can’t perform that action at this time.
0 commit comments