duplicator.py 234 B

12345678
  1. class Duplicator(object):
  2. def __init__(self, objs):
  3. self.objs = objs
  4. def __getattr__(self, name):
  5. def bcast(*args):
  6. return [o.__getattribute__(name)(*args) for o in self.objs]
  7. return bcast