<p dir="ltr">In a similar vein, Antoine recently noted that the fact the per-module state isn't a real PyObject creates a variety of interesting lifecycle management challenges.</p>
<p dir="ltr">I'm not seeing an easy solution, either, except to automatically skip reinitialization when the module has already been imported.</p>