Jean-Paul Calderone <exar...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5396> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com