[ python-Bugs-990749 ] os constants missing
SourceForge.net
noreply at sourceforge.net
Thu Jul 15 07:35:57 CEST 2004
Bugs item #990749, was opened at 2004-07-14 05:18
Message generated for change (Comment added) made by tim_one
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=990749&group_id=5470
>Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Connelly (connelly)
Assigned to: Nobody/Anonymous (nobody)
Summary: os constants missing
Initial Comment:
Some constants are missing from the os module on Windows.
http://docs.python.org/lib/os-fd-ops.html falsely
claims that the following O_ constants are present on
Windows:
os.O_NDELAY
os.O_NONBLOCK
os.O_DSYNC
os.O_RSYNC
os.O_SYNC
os.O_NOCTTY
None of these constants are defined in module os on
Windows.
These constants allow file locking (via os.open).
Currently, there is no cross platform way to lock a
file in Python.
I originally became interested in these constants
because of the following quote from module fcntl:
"The os.open function supports locking flags and is
available on a wider variety of platforms than the
fcntl.lockf and fcntl.flock functions, providing a more
platform-independent file locking facility."
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2004-07-15 01:35
Message:
Logged In: YES
user_id=31435
Changed category to Documentation, since this is a doc bug.
The O_XXX constants listed here aren't available on Windows
because Windows itself doesn't support them (and never
will), so that part of the docs should change.
That doesn't change that these constants may be more
portable than fcntl gimmicks (are they? don't know).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=990749&group_id=5470
More information about the Python-bugs-list
mailing list