On 03/01/2013 02:10 PM, Antoine Pitrou wrote:
Grant Edwards <invalid <at> invalid.invalid> writes:
<snip>
All open files (including sockets, pipes, serial ports, etc) will be
flushed (from an OS standpoint) and closed.
According to POSIX, no, open files will not be flushed:
“The _Exit() and _exit() functions shall not call functions registered with
atexit() nor any registered signal handlers. Open streams shall not be flushed.
Whether open streams are closed (without flushing) is implementation-defined.”
Note he didn't say the python buffers would be flushed. It's the OS
buffers that are flushed.
--
DaveA
--
http://mail.python.org/mailman/listinfo/python-list