Message113005
When executing the following code on Windows 7 64-bit ::
import sys
import signal
import time
print 'Version:'
print sys.executable or sys.platform, sys.version
print
print
def h(s, f): print s
signal.signal(signal.CTRL_BREAK_EVENT, h)
we get the following output::
Version:
C:\Python27\python.exe 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)]
Traceback (most recent call last):
File "signal_ctrl_break_event.py", line 14, in <module>
signal.signal(signal.CTRL_BREAK_EVENT, h)
RuntimeError: (0, 'Error')
When trying to register a handler for a signal.CTRL_C_EVENT the exception is as follows::
File "signal_ctrl_c_event.py", line 6, in <module>
signal.signal(signal.CTRL_C_EVENT, h)
ValueError: signal number out of range |
|
Date |
User |
Action |
Args |
2010-08-05 18:21:47 | valgog | set | recipients:
+ valgog |
2010-08-05 18:21:47 | valgog | set | messageid: <1281032507.28.0.881221183962.issue9524@psf.upfronthosting.co.za> |
2010-08-05 18:21:44 | valgog | link | issue9524 messages |
2010-08-05 18:21:44 | valgog | create | |
|