This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Path.touch's keyword argument mode documented incorrectly
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: AnkurDedania, docs@python, python-dev, zach.ware
Priority: normal Keywords:

Created on 2016-08-09 22:02 by AnkurDedania, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (5)
msg272269 - (view) Author: Ankur Dedania (AnkurDedania) Date: 2016-08-09 22:02
Path.touch's keyword argument mode documented incorrectly.

In the documents, it shows keyword argument mode defaulted to 0o777, however within the code it is set to 0o666.
msg272271 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-08-09 22:11
New changeset 773bc9a3172d by Zachary Ware in branch '3.5':
Issue #27722: Fix default for touch method's 'mode' argument
https://hg.python.org/cpython/rev/773bc9a3172d

New changeset 763d98f0a105 by Zachary Ware in branch 'default':
Closes #27722: Merge with 3.5
https://hg.python.org/cpython/rev/763d98f0a105
msg272272 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2016-08-09 22:11
Thanks for the report!
msg272302 - (view) Author: Ankur Dedania (AnkurDedania) Date: 2016-08-10 04:48
Path.touch is also incorrect in python 3.4 documents
msg272305 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2016-08-10 05:00
Yes, but 3.4 is out of bugfix maintenance and thus its docs are no longer updated.
History
Date User Action Args
2022-04-11 14:58:34adminsetgithub: 71909
2016-08-10 05:00:07zach.waresetstatus: open -> closed

messages: + msg272305
versions: - Python 3.4
2016-08-10 04:48:30AnkurDedaniasetstatus: closed -> open

messages: + msg272302
versions: + Python 3.4
2016-08-09 22:11:27zach.waresetnosy: + zach.ware

messages: + msg272272
versions: - Python 3.4
2016-08-09 22:11:11python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg272271

resolution: fixed
stage: resolved
2016-08-09 22:02:53AnkurDedaniacreate