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: Docs for os.link - say what happens if link already exists
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, iritkatriel, python-bugs-uit
Priority: normal Keywords:

Created on 2016-06-30 10:33 by python-bugs-uit, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg269572 - (view) Author: Niall Mansfield (python-bugs-uit) Date: 2016-06-30 10:33
In os.link(source, link_name)

Change
  Create a hard link pointing to source named link_name.

to
  Create a hard link pointing to source named link_name.
  If link_name already exists, OSError is raised.
msg391864 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-04-25 18:03
There is a general note at the top of the module:

"Note: All functions in this module raise OSError (or subclasses thereof) in the case of invalid or inaccessible file names and paths, or other arguments that have the correct type, but are not accepted by the operating system."


So there seems to have been a decision not state this separately for each function in the module.
History
Date User Action Args
2022-04-11 14:58:33adminsetgithub: 71607
2021-04-25 18:03:25iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg391864

resolution: wont fix
stage: resolved
2016-06-30 10:33:36python-bugs-uitcreate