Kaydet (Commit) c0fdd825 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #25605: Document exceptions raised by fcntl.ioctl() and fcntl.flock()

üst f358d2b2
...@@ -82,6 +82,8 @@ The module defines the following functions: ...@@ -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 which is a change from versions 2.3 and 2.4. Supply the argument explicitly if
version portability is a priority. version portability is a priority.
If the :c:func:`ioctl` fails, an :exc:`IOError` exception is raised.
An example:: An example::
>>> import array, fcntl, struct, termios, os >>> import array, fcntl, struct, termios, os
...@@ -103,6 +105,8 @@ The module defines the following functions: ...@@ -103,6 +105,8 @@ The module defines the following functions:
:manpage:`flock(2)` for details. (On some systems, this function is emulated :manpage:`flock(2)` for details. (On some systems, this function is emulated
using :c:func:`fcntl`.) using :c:func:`fcntl`.)
If the :c:func:`flock` fails, an :exc:`IOError` exception is raised.
.. function:: lockf(fd, operation, [length, [start, [whence]]]) .. function:: lockf(fd, operation, [length, [start, [whence]]])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment