Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 012d61c

Browse files
Update a TODO comment.
1 parent 60a78ab commit 012d61c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Modules/_xxsubinterpretersmodule.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ static PyObject *
6060
get_module_from_owned_type(PyTypeObject *cls)
6161
{
6262
assert(cls != NULL);
63-
// XXX We can't use PyType_GetModule() until the module's types
64-
// are heap types.
6563
return _get_current_module();
64+
// XXX Use the more efficient API now that we use heap types:
6665
//return PyType_GetModule(cls);
6766
}
6867

@@ -72,9 +71,8 @@ static PyObject *
7271
get_module_from_type(PyTypeObject *cls)
7372
{
7473
assert(cls != NULL);
75-
// XXX We can't use PyType_GetModuleByDef() until the module's types
76-
// are heap types.
7774
return _get_current_module();
75+
// XXX Use the more efficient API now that we use heap types:
7876
//return PyType_GetModuleByDef(cls, &moduledef);
7977
}
8078

0 commit comments

Comments
 (0)