KraftDiner wrote:
> This is what I've got so far:
> class Rect(Shape):
>       def __init__(self):
>               super(self.__class__, self).__init__()

Should be 
  super(Rect, self).__init__()

>       def render(self):
>               super(self.__class__, self).render()

ditto

In this example it doesn't make any difference but with a deeper inheritance 
hierachy it does. See
http://www.python.org/2.2.3/descrintro.html#cooperation

Kent
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to