[issue25605] fcntl doc: document exceptions raised on error for ioctl() and flock()

2015-11-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3d974e92e6f by Victor Stinner in branch '2.7': Issue #25605: Document exceptions raised by fcntl.ioctl() and fcntl.flock() https://hg.python.org/cpython/rev/d3d974e92e6f New changeset f82cd1ed659e by Victor Stinner in branch '3.4': Issue #25605:

[issue25605] fcntl doc: document exceptions raised on error for ioctl() and flock()

2015-11-13 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the review. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25605] fcntl doc: document exceptions raised on error for ioctl() and flock()

2015-11-12 Thread STINNER Victor
New submission from STINNER Victor: Attached patch documents the exception raised when ioctl() or flock() functions fail. Note: flock() can also raises a ValueError if the second parameter (op) is unknown. If the patch is approved, I will write a similar patch for Python 3 (just replace

[issue25605] fcntl doc: document exceptions raised on error for ioctl() and flock()

2015-11-12 Thread Martin Panter
Martin Panter added the comment: This looks good for Python 2 and the equivalent for Python 3. FWIW the ValueError case is platform-dependent. On Linux, I see EINVAL (the IOError version of ValueError): >>> flock(0, LOCK_UN) >>> flock(0, 0) Traceback (most recent call last): File "", line