Kaydet (Commit) a5caa6fc authored tarafından Skip Montanaro's avatar Skip Montanaro

reference the os module and the lock flags in the os.open() function.

(Someone please review what I wrote for accuracy.)
üst 2dc505e0
...@@ -118,3 +118,11 @@ hold an integer value; in the second example it will hold a string ...@@ -118,3 +118,11 @@ hold an integer value; in the second example it will hold a string
value. The structure lay-out for the \var{lockdata} variable is value. The structure lay-out for the \var{lockdata} variable is
system dependent --- therefore using the \function{flock()} call may be system dependent --- therefore using the \function{flock()} call may be
better. 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{fcntl.lockf} and \function{fcntl.flock}
functions, providing a more platform-independent file
locking facility.}
\end{seealso}
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