New issue 2255: Interpreter bootstrap is a mess https://bitbucket.org/pypy/pypy/issues/2255/interpreter-bootstrap-is-a-mess
Ronan Lamy: The translation-time and run-time initialisation of space and modules contains a mess of conditionals on things like `we_are_translated()` and `space.config.translating`, and relies on annotator black magic (`_cleanup_()` methods). As a result, the interpreter bootstrap sequence is different depending on whether we're running translated, untranslated, from `pyinteractive.py`, from tests, ... And this makes bootstrap issues annoyingly hard to understand and debug. Here are a few things that would improve the situation: * Kill `Module._cleanup_` and `MixedModule._cleanup_()` * Unify the various bootstrap logics as much as possible, with any necessary customisation happening in a single place. * Cleanly separate translation-time configuration from run-time initialisation. _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue