KeyboardInterrupt and DiskIO

Björn Lindqvist bjourne at gmail.com
Tue Apr 27 04:53:12 EDT 2010


DiskIO appears to not be interruptable. For example:

>>> open('bighugefile.sql').read()

Pressing Ctrl-C (on Linux with python 2.6.4) will not interrupt the
command. I believe that it used to in previous versions of python but
I may be mistaken. Is it supposed to be that way? The behavior is
annoying and in other environments ctrl-c interrupts disk io.


-- 
mvh Björn



More information about the Python-list mailing list