]> granicus.if.org Git - python/commit
Patch 1329 (partial) by Christian Heimes.
authorGuido van Rossum <guido@python.org>
Tue, 30 Oct 2007 17:27:30 +0000 (17:27 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 30 Oct 2007 17:27:30 +0000 (17:27 +0000)
commit2dced8b602df10531cab6cd87da5503c06f14888
treebf87d57eb4945b66b672aadfb87c071449391441
parent2673a5723433ff398fed901a8ebebb265031091e
Patch 1329 (partial) by Christian Heimes.
Add a closefd flag to open() which can be set to False to prevent closing
the file descriptor when close() is called or when the object is destroyed.
Useful to ensure that sys.std{in,out,err} keep their file descriptors open
when Python is uninitialized.  (This was always a feature in 2.x, it just
wasn't implemented in 3.0 yet.)
Doc/c-api/concrete.rst
Include/fileobject.h
Lib/io.py
Lib/quopri.py
Lib/test/test_io.py
Misc/NEWS
Modules/_fileio.c
Objects/fileobject.c
Python/import.c
Python/pythonrun.c