Package advene :: Package util
[hide private]
[frames] | no frames]

Package util

source code

Submodules [hide private]

Classes [hide private]
  dict_view
This callable accepts a dict and return a read only view of that dict.
  smart_list_view
This callable accepts a dict and a list (supposed to contain the same elements) and return a mixt read-only view of them.
Functions [hide private]
 
make_property(name)
This function must be called in the body of a class.
source code
 
make_tuple_methods(*names)
This function must be called in the body of a subclass of tuple.
source code
Function Details [hide private]

make_property(name)

source code 

This function must be called in the body of a class. It looks for _get_X, _set_X and _del_X to create the X property.

make_tuple_methods(*names)

source code 

This function must be called in the body of a subclass of tuple.
It creates methods __new__, __repr__, and as many methods as the names
provided, returning the corresponding element of the tuple.

e.g.

    class MyPair(tuple):
        "a lisp-like pair"
        make_tuple_methods("car", "cdr")