Changeset 3 for trunk

Show
Ignore:
Timestamp:
02/04/02 20:52:01 (7 years ago)
Author:
sholloway
Message:

*** empty log message ***

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBPrivate/Prototypes/Shane/Composite.py

    r1 r3  
    33#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    44 
    5 class composite_simple(list): 
     5class CompositeSimple(list): 
    66    def __call__(self, method): 
    77        for each in self: method(each) 
     
    99#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    1010 
    11 class composite_simple_result(list): 
     11class CompositeSimpleResult(list): 
    1212    def __call__(self, method): 
    1313        return [method(each) for each in self] 
     
    1515#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    1616 
    17 class composite_callable(list): 
     17class CompositeCallable(list): 
    1818    def __call__(self, *args, **kw): 
    1919        for each in self: apply(each, args, kw) 
     
    2121#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2222 
    23 class composite_callable_result(list): 
     23class CompositeCallableResult(list): 
    2424    def __call__(self, *args, **kw): 
    2525        return [apply(each, args, kw) for each in self] 
     
    2727#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2828 
    29 class composite_params(list): 
     29class CompositeParams(list): 
    3030    def __call__(self, method): 
    3131        for each in self: apply(method, each) 
     
    3333#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    3434 
    35 class composite_params_result(list): 
     35class CompositeParamsResult(list): 
    3636    def __call__(self, method): 
    3737        return [apply(method, each) for each in self]