[issue14615] pull some import state out of the interpreter state

Martin v. Löwis report at bugs.python.org
Wed Apr 18 21:32:29 CEST 2012


Martin v. Löwis <martin at v.loewis.de> added the comment:

> Another candidate that could probably go away, regardless of the
> import work, is 'modules_by_index'.  As far as I can see, there is
> only one use of    interp->modules_by_index in the cpython code-base:
> PyState_FindModule() in Python/pystate.c.  Likewise there is only one
> use of PyState_FindModule(): atexit_callfuncs() in
> Modules/atexitmodule.c.

There will be certainly many more uses of PySteate_FindModule in the
future. I fail to see what is gained by this kind of change, and am
firmly -1 on removing variables arbitrarily.

----------
title: pull some import state out of the interpreter state -> pull some import state out of the	interpreter state

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14615>
_______________________________________


More information about the Python-bugs-list mailing list