[Tutor] __init__ for class instantiation?
Fri Apr 25 20:44:02 2003
> My best current solution is to do just that. I can do it via
> this means the function I want to run once upon the class's
> actually called with every instance of the class. But I'm not going
> stress about the CPU cycles caused by this :)
One other thought. Create a singleton class(ACtionList?) to hold the
actions then assign that to a member of your Thing class... Pass it
Thing as a default init parameter even. Then every Thing type object
has a reference to the single instance of ActionList.
Just a thought.