We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ff4b9 commit b651cefCopy full SHA for b651cef
Objects/moduleobject.c
@@ -29,6 +29,10 @@ static PyMemberDef module_members[] = {
29
30
static void
31
assert_def_missing_or_redundant(PyModuleObject *m) {
32
+ /* We copy all relevant info into the module object.
33
+ * Modules created using a def keep a reference to that (statically
34
+ * allocated) def; the info there should match what we have in the module.
35
+ */
36
#ifdef Py_DEBUG
37
if (m->md_token_is_def) {
38
PyModuleDef *def = (PyModuleDef *)m->md_token;
0 commit comments