[Chicago] create all classes

Michael Kramlich ramadeus at rcn.com
Tue Feb 19 04:32:55 CET 2008


Lukasz, I second what Kumar said. Either will fix your problem.
But there's one more optimization you can do, in the special case  
where you don't need any B-specific behavior at instance creation time.
In that case, you don't even need to write an __init__ method for B.  
If B doesn't have one defined Python will call the A one,  
automatically. No need to call it explicitly from inside a B  
constructor.
You'll have less typing and a smaller file. Saves trees. And whales.

Mike
ZodLogic Games


More information about the Chicago mailing list