[issue5396] os.read not handling O_DIRECT flag
Jean-Paul Calderone
report at bugs.python.org
Wed Mar 18 22:18:14 CET 2009
Jean-Paul Calderone <exarkun at divmod.com> added the comment:
> I think the policy is to mirror all possible O_* constants, even if they
> are of no use in Python. For example, we also have os.O_DIRECTORY.
Not disagreeing with the conclusion of this ticket, but I would like to
point out that os.O_DIRECTORY isn't useless in Python. You need it to
use with os.open if you want to open a directory (which you may wish to
do in order to use with os.fsync, for example).
----------
nosy: +exarkun
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5396>
_______________________________________
More information about the Python-bugs-list
mailing list