Message261512
Hi,
Thanks for the quick response.
I tried your code, it doesn't capture the keyboard interrupt, so the method doesn't seem to be needed. Also, the code doesn't carry on if interrupt was received, but instead produces the stack traceback. For example:
while True:
try:
data = raw_input()
print data
except KeyboardInterrupt:
print "Interrupt!"
Does not print "data" if a KeyboardInterrupt is received during raw_input.
Unfortunately, I can't use python 3 as my organization currently uses 2 in their production environment. |
|
Date |
User |
Action |
Args |
2016-03-10 17:00:47 | jecanne | set | recipients:
+ jecanne, paul.moore, vstinner, tim.golden, zach.ware, steve.dower, tjguk |
2016-03-10 17:00:47 | jecanne | set | messageid: <1457629247.39.0.490463861808.issue26531@psf.upfronthosting.co.za> |
2016-03-10 17:00:47 | jecanne | link | issue26531 messages |
2016-03-10 17:00:47 | jecanne | create | |
|