Package XPyLIB :: Module handler
[hide private]
[frames] | no frames]

Module handler

source code

General handlers implementation.

Implement operation with collection of objects (handler-objects) same as a single object.

Quik start.

Program source:
   def _debug():
       import sys
       h1=sys.stdout
       h2=sys.stderr
       ho=Handler()
       ho.handler_add(h1,h2)
       ho.write('Test handlerE{\}n')
In this programm you add two handler-objects (stdout and stderr) in Handler ho. Then you call function from this handler-objects. Detail of function calling: As rezult this action will be writen string 'Test handler\n' into two stream.


Warning: For all index operation may return exception as list object if argument is wrong.

Classes [hide private]
  HandlerError
Represent error or exception then calling handler.
  Handler
Base handler class.
  EventFilter
Event filter for Handler.
Functions [hide private]
 
_debug() source code

Imports: dbg