File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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
12491249methods, which cannot use the ``METH_METHOD `` convention.
12501250
12511251It 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
12541254state. Example from the ``setattro `` slot method in
12551255``Modules/_threadmodule.c ``::
12561256
12571257 static int
12581258 local_setattro(localobject *self, PyObject *name, PyObject *v)
12591259 {
1260- PyObject *module = _PyType_GetModuleByDef (Py_TYPE(self), &thread_module);
1260+ PyObject *module = PyType_GetModuleByDef (Py_TYPE(self), &thread_module);
12611261 thread_module_state *state = get_thread_state(module);
12621262 ...
12631263 }
You can’t perform that action at this time.
0 commit comments