[issue31990] Pickling deadlocks in thread with python -m

2020-12-02 Thread Sara Kelley
Sara Kelley added the comment: After looking a little more I don't believe the extension is the problem, but it is an easier way to see the problem. When testqueuepickle3 is run as a script you don't see the error. When it is imported as a module, even from another script with va

[issue31990] Pickling deadlocks in thread with python -m

2020-12-02 Thread Sara Kelley
Sara Kelley added the comment: https://docs.python.org/3/using/cmdline.html#cmdoption-m The documentation says you must not give a file extension with the module option. Because the extension was given the thread is deadlocking in importlib._bootstrap when trying to acquire the module lock

[issue31990] Pickling deadlocks in thread with python -m

2020-12-01 Thread Sara Kelley
Sara Kelley added the comment: >python3 -m testqueuepickle3.py >It hangs. I see this hang too. If you only specify the module name it does not hang. python3 -m testqueuepickle3 -- nosy: +serakeri ___ Python tracker <https://bugs.p