Take new approach using the NamedTemporaryFile() file-like object as input
to the ZipFile() which auto-deletes after implicit close leaving with scope.
Original code produced double-open problems on Windows platform from using
already open NamedTemporaryFile() generated filename instead of object.
Take new approach using the NamedTemporaryFile() file-like object as input
to the ZipFile() which auto-deletes after implicit close leaving with scope.
Original code produced double-open problems on Windows platform from using
already open NamedTemporaryFile() generated filename instead of object.
python os.remove() throws exceptions on Windows platform when attempting to
remove file while still open.
Add local allocateTempFileName() to clarify that only the name is being
allocated by NamedTemporaryFile(); file and handle are closed (but not
deleted) when leave scope. Subsequent file deleti
3 matches
Mail list logo