[Python-checkins] python/dist/src/Doc/lib libfcntl.tex,1.35,1.36
nnorwitz at users.sourceforge.net
nnorwitz at users.sourceforge.net
Wed Jul 21 03:41:17 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20479/Doc/lib
Modified Files:
libfcntl.tex
Log Message:
SF #994605, fcntl example is broken
The last call to fcntl (which wasn't changed) doesn't work for me, but
the first part works now.
Backport candidate.
Index: libfcntl.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfcntl.tex,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** libfcntl.tex 30 Jun 2004 21:06:45 -0000 1.35
--- libfcntl.tex 21 Jul 2004 01:41:14 -0000 1.36
***************
*** 152,159 ****
\begin{verbatim}
! import struct, fcntl
! f = file(...)
! rv = fcntl(f, fcntl.F_SETFL, os.O_NDELAY)
lockdata = struct.pack('hhllhh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
--- 152,159 ----
\begin{verbatim}
! import struct, fcntl, os
! f = open(...)
! rv = fcntl.fcntl(f, fcntl.F_SETFL, os.O_NDELAY)
lockdata = struct.pack('hhllhh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
More information about the Python-checkins
mailing list