Package lepl :: Package core :: Module monitor :: Class ActiveMonitor
[hide private]
[frames] | no frames]

Class ActiveMonitor

source code


A StackMonitor implementation that allows matchers that implement the interface on_push/on_pop to be called.

Generators can interact with active monitors if:

  1. The monitor extends this class
  2. The matcher has a monitor_class attribute whose value is equal to (or a subclass of) the monitor class it will interact with
Instance Methods [hide private]
 
push(self, generator)
Called when a generator is pushed onto the trampoline stack.
source code
 
pop(self, generator)
Called when a generator is popped from the trampoline stack.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

push(self, generator)

source code 
Called when a generator is pushed onto the trampoline stack.
Overrides: StackMonitor.push

pop(self, generator)

source code 
Called when a generator is popped from the trampoline stack.
Overrides: StackMonitor.pop