Re: [Python-Dev] Return code when there's a problem at shutdown

2010-08-08 Thread Antoine Pitrou
On Sun, 08 Aug 2010 18:49:50 -0400 Terry Reedy wrote: > > In the above example, I could say that Python did what it promised to do > -- print something to the stdout stream, and that failure on flushing > was outside its purview. > > I could also say that if one wants the flush to be considere

Re: [Python-Dev] Return code when there's a problem at shutdown

2010-08-08 Thread Terry Reedy
On 8/8/2010 5:49 PM, Antoine Pitrou wrote: Hello, In issue #5319, the poster complains that redirecting stdout to a misbehaving (pseudo-)file such as /dev/full should produce a non-zero error code when the IO error happens at shutdown (when calling flush() on stdout). I think is worth noting

[Python-Dev] Return code when there's a problem at shutdown

2010-08-08 Thread Antoine Pitrou
Hello, In issue #5319, the poster complains that redirecting stdout to a misbehaving (pseudo-)file such as /dev/full should produce a non-zero error code when the IO error happens at shutdown (when calling flush() on stdout). Is it a reasonable expectation? What would you think of making the cha