]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #25605: Document exceptions raised by fcntl.ioctl() and fcntl.flock()
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 13 Nov 2015 08:13:16 +0000 (09:13 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 13 Nov 2015 08:13:16 +0000 (09:13 +0100)
Doc/library/fcntl.rst

index 562e78fb06abd5da83a46ee208e69a73e7e7da88..478c4505ac60df1535930d9942cdf6f272bc05f3 100644 (file)
@@ -82,6 +82,8 @@ The module defines the following functions:
    which is a change from versions 2.3 and 2.4. Supply the argument explicitly if
    version portability is a priority.
 
+   If the :c:func:`ioctl` fails, an :exc:`IOError` exception is raised.
+
    An example::
 
       >>> import array, fcntl, struct, termios, os
@@ -103,6 +105,8 @@ The module defines the following functions:
    :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]]])