8000 gh-99741: Clean Up the _xxsubinterpreters Module by ericsnowcurrently · Pull Request #99940 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-99741: Clean Up the _xxsubinterpreters Module #99940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update a TODO comment.
  • Loading branch information
ericsnowcurrently committed Dec 2, 2022
commit 012d61c3c68fa0c2189eae30314bb6e658bea582
6 changes: 2 additions & 4 deletions Modules/_xxsubinterpretersmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ static PyObject *
get_module_from_owned_type(PyTypeObject *cls)
{
assert(cls != NULL);
// XXX We can't use PyType_GetModule() until the module's types
// are heap types.
return _get_current_module();
// XXX Use the more efficient API now that we use heap types:
//return PyType_GetModule(cls);
}

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

Expand Down
0