[issue23730] Document return value for ZipFile.extract()

New submission from Martijn Pieters: The documentation for zipfile.ZipFile.extract() doesn't mention at all that it returns the local path created, either for the directory that the member represents, or the new file created from the zipped data. *Returns the full local path created (a directory or new file)* or similar. ---------- assignee: docs@python components: Documentation messages: 238778 nosy: docs@python, mjpieters priority: normal severity: normal status: open title: Document return value for ZipFile.extract() type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23730> _______________________________________

Stéphane Wirtel added the comment: fix for the documentation of ZipFile.extract. In the code of _extract_member, there is a normalisation of the target path, I use this term "normalized" for the fix. ---------- keywords: +patch nosy: +matrixise Added file: http://bugs.python.org/file38943/issue23730.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23730> _______________________________________

Roundup Robot added the comment: New changeset 731e366885f5 by Zachary Ware in branch '2.7': Issue #23730: Document the return value of ZipFile.extract https://hg.python.org/cpython/rev/731e366885f5 New changeset 7ac1c2307a70 by Zachary Ware in branch '3.4': Issue #23730: Document the return value of ZipFile.extract https://hg.python.org/cpython/rev/7ac1c2307a70 New changeset d958c74ddb0c by Zachary Ware in branch 'default': Closes #23730: merge with 3.4 https://hg.python.org/cpython/rev/d958c74ddb0c ---------- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23730> _______________________________________

Zachary Ware added the comment: Thanks for the patch! ---------- nosy: +zach.ware versions: -Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23730> _______________________________________
participants (4)
-
Martijn Pieters
-
Roundup Robot
-
Stéphane Wirtel
-
Zachary Ware