STINNER Victor added the comment:

Oh, it seems like zipfile is not affected by the issue, only tarfile. The 
documentation is correct:
https://docs.python.org/dev/library/zipfile.html#zipfile.ZipFile.extract

You can test using attached test2.zip.

haypo@selma$ python3 -m zipfile -l ~/test2.zip 
File Name                                             Modified             Size
/home/haypo/test                               2017-03-10 17:29:06            5

haypo@selma$ cd $HOME
haypo@selma$ rm -rf z/
haypo@selma$ mkdir z
haypo@selma$ cd z
haypo@selma$ python3 -m zipfile -e ~/test2.zip .
haypo@selma$ find
.
./home
./home/haypo
./home/haypo/test
haypo@selma$ cat ~/test
cat: /home/haypo/test: No such file or directory

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
Added file: http://bugs.python.org/file46716/test2.zip

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

Reply via email to