Cristi Fati <cristifa...@gmail.com> added the comment:

Hm, I assumed that a bad password, will raise an exception (at some point). 
but, if it doesn't, the destination file will be overwritten (with the messed 
up content), which also happens now (so, no behavior change).

This is trying to make wrong passwords behavior (when an exception is raised) 
consistent.

What I can think of is that when some bytes were already extracted when the 
exception occurs, overwrite the existing file (if any), so at the end the 
faulty content will be kept (although I don't know haw this could help anyone), 
but in any case a 0 lengthed file is not a good option (from my PoV).

Of course specifying another dir is an option, but I only see it as a 
workaround.

----------
versions:  -Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36247>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to