[issue32973] Importing the same extension module under multiple names breaks non-reinitialisable extension modules
Petr Viktorin
report at bugs.python.org
Sat Aug 25 09:54:13 EDT 2018
Petr Viktorin <encukou at gmail.com> added the comment:
That's quite problematic, since then you're sharing a mutable object across interpreters.
The user can store any attribute on module objects, including e.g. Python functions that reference their original interpreter's global state, but become callable in other interpreters.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32973>
_______________________________________
More information about the Python-bugs-list
mailing list