ericsnowcurrently / multi-core-python

Enabling CPython multi-core parallelism via subinterpreters.
BSD 3-Clause "New" or "Revised" License
245 stars 6 forks source link

Identify any problems with using the stdlib in subinterpreters. #65

Open ericsnowcurrently opened 4 years ago

ericsnowcurrently commented 4 years ago

This could be done with the following:

  1. run the full CPython test suite (regrtest) inside a subinterpreter
  2. create an issue for each failure

There are also possible issues that could arise when using a stdlib module in two different subinterpreters, which the test suite doesn't surface. It would be nice to have a strategy for covering that case.

It might also be reasonable (in the long term) to add a test for each stdlib modules that checks subinterpreter support.

tritium21 commented 4 years ago

would it be a good idea to run each test twice, in their own subinterpreters simultaneously (or at least as simultaneously as the current implementation of subinterpreters allows)?