diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-11-13 08:13:16 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-11-13 08:13:16 (GMT) |
commit | c0fdd825c28127734bfd1ba615805b9e2696f103 (patch) | |
tree | 879a2e5b77a1baea7835c62a5fa838dd4bedd4e8 /Doc | |
parent | f358d2b2443affe5b2da0c9698a299c23478dbc5 (diff) | |
download | cpython-c0fdd825c28127734bfd1ba615805b9e2696f103.zip cpython-c0fdd825c28127734bfd1ba615805b9e2696f103.tar.gz cpython-c0fdd825c28127734bfd1ba615805b9e2696f103.tar.bz2 |
Issue #25605: Document exceptions raised by fcntl.ioctl() and fcntl.flock()
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/fcntl.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst index 562e78f..478c450 100644 --- a/Doc/library/fcntl.rst +++ b/Doc/library/fcntl.rst @@ -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]]]) |