This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients georg.brandl, r.david.murray
Date 2009-06-04.21:38:29
SpamBayes Score 1.0796844e-05
Marked as misclassified No
Message-id <1244151518.6.0.751803851074.issue6194@psf.upfronthosting.co.za>
In-reply-to
Content
At the bottom of http://docs.python.org/library/fcntl.html there is a
"see also" section for the os module that says:

    If the locking flags O_SHLOCK and O_EXLOCK are present in the os
module, the os.open() function provides a more platform-independent
alternative to the lockf() and flock() functions.

However, those flags are documented as being "unix only" (ie: no
windows), and in fact Linux does not support them.  Alan Cox rejected
support for them back in 2000 according to this linux kernel posting:

  http://lkml.indiana.edu/hypermail/linux/kernel/0005.1/1309.html

so it doesn't seem likely linux will ever support them.

Thus, to say that they provide a "more platform independent-alternative"
would appear to be false, since they appear to only be supported on BSD
and derivitives.
History
Date User Action Args
2009-06-04 21:38:38r.david.murraysetrecipients: + r.david.murray, georg.brandl
2009-06-04 21:38:38r.david.murraysetmessageid: <1244151518.6.0.751803851074.issue6194@psf.upfronthosting.co.za>
2009-06-04 21:38:31r.david.murraylinkissue6194 messages
2009-06-04 21:38:29r.david.murraycreate