BoundFactory

This will bind the attribute to whatever is given by factory_class. This factory should be a callable with the signature factory_class(added_class, attr_name, *args, **kw).

The factory will be reinvoked (and the attribute rebound) for every subclassing.


Attributes

a __addtoclass__

<bound class method BoundFactory.__addtoclass__>

a __mutableattributes__

()

a __restrict_attributes__

None

a __unpackargs__

()

a clone_for_subclass

True

a declarative_count

2

a factory_class

None

a singleton

<bound class method BoundFactory.singleton>

Methods

f __classinit__(cls, new_attrs) ...

f __instanceinit__(self, new_attrs) ...

f set_object(cls, added_class, attr_name, obj) ...

f __init__(self, *args, **kw) ...

f make_object(cls, added_class, attr_name, *args, **kw) ...

f __call__(self, *args, **kw) ...

See the source for more information.