hooks
index
(built-in)

The hooks module.

 
Functions
       
add(...)
add(type, function)
 
Register a new hook function. Hook functions should take one argument:
an information string that can be parsed with hooks.parse_info
build_info(...)
build_info(format, args)
 
Returns hook information from a string format and a tuple of values for
the format.
parse_info(...)
parse_info(info)
 
Returns a tuple of parsed hook information.
remove(...)
remove(type, function)
 
Unregister a hook function.
run(...)
run(hooktypes)
 
Runs hooks registered to the given type.