Skip to content
Prev Previous commit
Next Next commit
Add a TODO comment.
  • Loading branch information
ericsnowcurrently committed Feb 13, 2023
commit d5a0fe64423693c67a66c07037edc988a37e980d
1 change: 1 addition & 0 deletions Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ fix_up_extension(PyObject *mod, PyObject *name, PyObject *filename)

// bpo-44050: Extensions and def->m_base.m_copy can be updated
// when the extension module doesn't support sub-interpreters.
// XXX Why special-case the main interpreter?
if (_Py_IsMainInterpreter(tstate->interp) || def->m_size == -1) {
if (def->m_size == -1) {
if (def->m_base.m_copy) {
Expand Down