[Python-checkins] (no subject)

Stéphane Wirtel webhook-mailer at python.org
Fri Sep 13 13:32:31 EDT 2019




To: python-checkins at python.org
Subject: Doc: fcntl.lockf() is more powerful than written (GH-6750)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

https://github.com/python/cpython/commit/77cd0ceab2f6c1696fb1d31115c2f880b2e2=
1934
commit: 77cd0ceab2f6c1696fb1d31115c2f880b2e21934
branch: master
author: Eric O. LEBIGOT (EOL) <lebigot at users.noreply.github.com>
committer: St=C3=A9phane Wirtel <stephane at wirtel.be>
date: 2019-09-13T18:32:28+01:00
summary:

Doc: fcntl.lockf() is more powerful than written (GH-6750)

files:
M Doc/library/fcntl.rst

diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst
index 6a66f5b66481..da39c3187a1e 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=3D0, start=3D0, whence=3D0)
=20
    This is essentially a wrapper around the :func:`~fcntl.fcntl` locking cal=
ls.
-   *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.f=
ileno`
+   method are accepted as well) of the file to lock or unlock, and *cmd*
    is one of the following values:
=20
    * :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.
-



More information about the Python-checkins mailing list