Donn Ingle a écrit : >> for child in self.childrens: >> if 'foo' in child.__class__.__dict__: >> child.foo() > Bruno, you're the man! I really must take the time to look into all those > under-under score things!
Knowing Python's object model can help, indeed !-) Now while this kind of stuff is ok in the low-level parts of a framework, it shouldn't be seen too much in application code IMHO. -- http://mail.python.org/mailman/listinfo/python-list