classification
Title: docs for os.symlink(src, dst) doesn't mention exceptions
Type: behavior
Components: Documentation Versions: Python 3.0, Python 2.6, Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: dgardner, georg.brandl
Priority: normal Keywords:

Created on 2008-01-11 23:46 by dgardner, last changed 2008-01-12 10:54 by georg.brandl.

Files
File name Uploaded Description Edit Remove
symtest.py dgardner, 2008-01-11 23:46
Messages
msg59762 (view) Author: David Gardner (dgardner) Date: 2008-01-11 23:46
the docs for os.symlink at: http://docs.python.org/lib/os-file-dir.html
don't mention if the function raises an exception if there was a file
permission failure.
msg59763 (view) Author: David Gardner (dgardner) Date: 2008-01-11 23:48
the output of symtest.py looks like:
<type 'instance'>
(13, 'Permission denied')
[Errno 13] Permission denied
msg59812 (view) Author: Georg Brandl (georg.brandl) Date: 2008-01-12 10:54
Most of the os functions don't specify that they raise OSError in the
case of invalid or inaccessible paths.

I've now added a general note to that effect in r59930.
History
Date User Action Args
2008-01-12 10:54:08georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg59812
2008-01-11 23:53:09christian.heimessetpriority: normal
assignee: georg.brandl
nosy: + georg.brandl
versions: + Python 2.6, Python 3.0
2008-01-11 23:48:31dgardnersetmessages: + msg59763
2008-01-11 23:46:32dgardnercreate