[Python-checkins] cpython (3.4): Issue #25605: Document exceptions raised by fcntl.ioctl() and fcntl.flock()
victor.stinner
python-checkins at python.org
Fri Nov 13 03:14:43 EST 2015
https://hg.python.org/cpython/rev/f82cd1ed659e
changeset: 99102:f82cd1ed659e
branch: 3.4
parent: 99097:fcd453e89c4e
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Nov 13 09:13:48 2015 +0100
summary:
Issue #25605: Document exceptions raised by fcntl.ioctl() and fcntl.flock()
files:
Doc/library/fcntl.rst | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst
--- a/Doc/library/fcntl.rst
+++ b/Doc/library/fcntl.rst
@@ -83,6 +83,8 @@
buffer 1024 bytes long which is then passed to :func:`ioctl` and copied back
into the supplied buffer.
+ If the :c:func:`ioctl` fails, an :exc:`IOError` exception is raised.
+
An example::
>>> import array, fcntl, struct, termios, os
@@ -104,6 +106,8 @@
:manpage:`flock(2)` for details. (On some systems, this function is emulated
using :c:func:`fcntl`.)
+ If the :c:func:`flock` fails, an :exc:`IOError` exception is raised.
+
.. function:: lockf(fd, operation, [length, [start, [whence]]])
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list