Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
unittest.signals._InterruptHandler Class Reference
Inheritance diagram for unittest.signals._InterruptHandler:
Inheritance graph
Collaboration diagram for unittest.signals._InterruptHandler:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 9 of file

Constructor & Destructor Documentation

def unittest.signals._InterruptHandler.__init__ (   self,

Definition at line 10 of file

00011     def __init__(self, default_handler):
00012         self.called = False
00013         self.default_handler = default_handler

Here is the caller graph for this function:

Member Function Documentation

def unittest.signals._InterruptHandler.__call__ (   self,

Definition at line 14 of file

00015     def __call__(self, signum, frame):
00016         installed_handler = signal.getsignal(signal.SIGINT)
00017         if installed_handler is not self:
00018             # if we aren't the installed handler, then delegate immediately
00019             # to the default handler
00020             self.default_handler(signum, frame)
00022         if self.called:
00023             self.default_handler(signum, frame)
00024         self.called = True
00025         for result in _results.keys():
00026             result.stop()

Member Data Documentation

Definition at line 11 of file

Definition at line 12 of file

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

The documentation for this class was generated from the following file: