diff options
author | Eric O. LEBIGOT (EOL) <lebigot@users.noreply.github.com> | 2019-09-13 17:32:28 (GMT) |
---|---|---|
committer | Stéphane Wirtel <stephane@wirtel.be> | 2019-09-13 17:32:28 (GMT) |
commit | 77cd0ceab2f6c1696fb1d31115c2f880b2e21934 (patch) | |
tree | f50dc56c0e5244130460a96a7bfbe21ac89a92b3 /Doc | |
parent | 0bc17ea2f5966f429b5b8d6b4ccb9c01f1f610d0 (diff) | |
download | cpython-77cd0ceab2f6c1696fb1d31115c2f880b2e21934.zip cpython-77cd0ceab2f6c1696fb1d31115c2f880b2e21934.tar.gz cpython-77cd0ceab2f6c1696fb1d31115c2f880b2e21934.tar.bz2 |
Doc: fcntl.lockf() is more powerful than written (GH-6750)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/fcntl.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst index 6a66f5b..da39c31 100644 --- a/Doc/library/fcntl.rst +++ b/Doc/library/fcntl.rst @@ -124,7 +124,8 @@ The module defines the following functions: .. function:: lockf(fd, cmd, len=0, start=0, whence=0) This is essentially a wrapper around the :func:`~fcntl.fcntl` locking calls. - *fd* is the file descriptor of the file to lock or unlock, and *cmd* + *fd* is the file descriptor (file objects providing a :meth:`~io.IOBase.fileno` + method are accepted as well) of the file to lock or unlock, and *cmd* is one of the following values: * :const:`LOCK_UN` -- unlock @@ -175,4 +176,3 @@ using the :func:`flock` call may be better. present in the :mod:`os` module (on BSD only), the :func:`os.open` function provides an alternative to the :func:`lockf` and :func:`flock` functions. - |