Message201568
"Again, I don't think this is a good patch. If you want to disable module imports during shutdown, it should be done inside the import machinery,
not duplicated at every call site."
Ah sorry, I misunderstood your previous comment. I agree that traceback_finalize.patch is very specific.
Here is a new patch "import_finalization.patch", which block importing new modules (and import again unloaded modules) during finalization.
The full test suite pass with the patch, so at least no unit test tries to import a module during finalization.
> (but I don't necessarily agree that it's a good idea, either)
I'm opening a thread on python-dev to discuss this tricky question. |
|
| Date |
User |
Action |
Args |
| 2013-10-28 18:43:54 | vstinner | set | recipients:
+ vstinner, brett.cannon, pitrou, python-dev |
| 2013-10-28 18:43:54 | vstinner | set | messageid: <[email protected]> |
| 2013-10-28 18:43:54 | vstinner | link | issue19421 messages |
| 2013-10-28 18:43:54 | vstinner | create | |
|