Jeremy Fishman jeremy.r.fish...@gmail.com added the comment:
The behavior under question here is how the interpreter handles a broken pipe
during shutdown. The following code behaves as expected when either (a) the
process receives a SIGINT or (b) the output pipe is closed
import sys
try:
Terry J. Reedy tjre...@udel.edu added the comment:
Have you tried this with 3.2 (or 3.1)?
What behavior do you expect when pipe goes first?
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11380
New submission from ulidtko ulid...@gmail.com:
The following script fails:
from time import sleep
try:
while True:
sleep(0.1)
print blah
except KeyboardInterrupt:
pass
when being launched with redirections like this:
$ python test.py | tee /dev/null
and the tee