]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Tweak note about using os.open to lock files if O_SHLOCK and O_EXLOCK are
authorSkip Montanaro <skip@pobox.com>
Wed, 8 Jun 2005 02:28:11 +0000 (02:28 +0000)
committerSkip Montanaro <skip@pobox.com>
Wed, 8 Jun 2005 02:28:11 +0000 (02:28 +0000)
present.

Doc/lib/libfcntl.tex

index e1350ecb230f305d10c965b895dc725164064d78..dc76da3cc954c02856b30bdb1addff3a28937069 100644 (file)
@@ -166,9 +166,9 @@ system dependent --- therefore using the \function{flock()} call may be
 better.
 
 \begin{seealso}
-  \seemodule{os}{The \function{os.open()} function supports locking flags
-                 and is available on a wider variety of platforms than
-                 the \function{lockf()} and \function{flock()}
-                 functions, providing a more platform-independent file
-                 locking facility.}
+  \seemodule{os}{If the locking flags \constant{O_SHLOCK} and
+                \constant{O_EXLOCK} are present in the \module{os} module,
+                the \function{os.open()} function provides a more
+                platform-independent alternative to the \function{lockf()}
+                and \function{flock()} functions.}
 \end{seealso}