[issue12797] io.FileIO and io.open should support openat

Antoine Pitrou report at bugs.python.org
Sat Aug 20 23:21:17 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> A third idea is to find a way to override the low-level open()
> function (the one that returns a fd).

Why not. It would e.g. allow to use CreateFile under Windows (the hg
guys do this in order to change the "sharing" mode to something more
laxist).

> openat() seems to exist only on Linux, so I'm -1 on adding new
> parameters to support this function only.

openat() is POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12797>
_______________________________________


More information about the Python-bugs-list mailing list