[issue23105] os.O_SHLOCK and os.O_EXLOCK are not available on Linux
Sworddragon
report at bugs.python.org
Tue Dec 23 15:38:55 CET 2014
New submission from Sworddragon:
>From the documentation:
"
os.O_DSYNC
os.O_RSYNC
os.O_SYNC
os.O_NDELAY
os.O_NONBLOCK
os.O_NOCTTY
os.O_SHLOCK
os.O_EXLOCK
os.O_CLOEXEC
These constants are only available on Unix.
"
But os.O_SHLOCK and os.O_EXLOCK are not available on my system (Linux 3.16.7-ckt1 x86_64):
sworddragon at ubuntu:~$ python3
Python 3.4.2 (default, Dec 4 2014, 09:34:20)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.O_SHLOCK
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'O_SHLOCK'
>>> os.O_EXLOCK
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'O_EXLOCK'
>>> exit()
----------
messages: 233048
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: os.O_SHLOCK and os.O_EXLOCK are not available on Linux
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23105>
_______________________________________
More information about the Python-bugs-list
mailing list