[ python-Bugs-990749 ] os constants missing

SourceForge.net noreply at sourceforge.net
Wed Jul 14 11:18:59 CEST 2004


Bugs item #990749, was opened at 2004-07-14 09:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=990749&group_id=5470

Category: None
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."


----------------------------------------------------------------------

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