[Piuparts-devel] [py3porters-devel] [Needs Port] piuparts.debian.org

Geoffrey Thomas geofft at ldpreload.com
Sat Apr 18 20:40:58 UTC 2015


On Sat, 18 Apr 2015, Bernhard Janetzki wrote:

> # O_CLOEXEC - “stuck"
> There are some open calls with “e” mode in piuparts-slave.py. ATM i 
> stuck on this because python 3 disallows the “e” usage. You can find 
> some information about it here: https://bugs.python.org/issue12103. 
> Input is very appreciated. :-)

It looks like as of Python 3.4, O_CLOEXEC is the default, and you don't 
need to specify "e". See the words "The newly-created file is 
non-inheritable" in the docs for `open`:

https://docs.python.org/3/library/functions.html#open
https://docs.python.org/3/library/os.html#fd-inheritance

See also

https://www.python.org/dev/peps/pep-0446/
http://bugs.python.org/issue18571

(PEP 0446 is non-obviously mentioned in a page linked from the page you 
linked.)

-- 
Geoffrey Thomas
https://ldpreload.com
geofft at ldpreload.com


More information about the Piuparts-devel mailing list