Nick Henderson added the comment:
We have recently bumped into a similar problem. Using FreeBSD, subprocess calls
were taking more than 10 times the usual time to execute after migrating to
python3.6. After some digging, the default for 'close_fds' was changed to
'True
New submission from Nick Henderson :
In both Python 3.8.3 and 3.9.0b3, using zipfile.Path to write a file in a
context manager results in an attempt to write to the zip file after it is
closed.
In Python 3.9.0b3:
import io
from zipfile import ZipFile, Path
def make_zip():
""