[issue27150] PEP446 (CLOEXEC by default) violation with fcntl.fcntl(..., fcntl.F_DUPFD)

STINNER Victor report at bugs.python.org
Sun May 29 05:11:49 EDT 2016


STINNER Victor added the comment:

I don't think that it's possible nor worth it to wrap all fcntl() and all
ioctl() calls. I see these functions as very low-level APIs and so I
consider that the caller is responsible of what he/she does.

If you want to change something, explian in fcntl module doc that the PEP
466 is not implemented in this module znd it's a deliberate choice.

I agree with Martin, it's the responsability of the dev to use the right
command depending on the use case.

----------

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


More information about the Python-bugs-list mailing list