msgspec currently uses the old style single-phase init for module import. We should transition to use the newer multi-phase init process. Besides code quality, this is one of the steps required for us to make use of the new per-interpreter GIL subinterpreters feature in CPython 3.12.
Description
msgspec
currently uses the old style single-phase init for module import. We should transition to use the newer multi-phase init process. Besides code quality, this is one of the steps required for us to make use of the new per-interpreter GIL subinterpreters feature in CPython 3.12.Some relevant resources: