• Guido van Rossum's avatar
    Patch 1329 (partial) by Christian Heimes. · 2dced8b6
    Guido van Rossum yazdı
    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.)
    2dced8b6
quopri.py 7.14 KB