On Dec 12, 2007 1:05 PM,  <[EMAIL PROTECTED]> wrote:
> In the dTextBoxMixinBase code below, why is the method recursed?
>
>                 super(dTextBoxMixinBase, self).flushValue()
>
> It looks like nothing ever will happen as a result of the call because
> _inFlush is always set to true and it simple returns when true.  Since we
> are already in dTextBoxMixinBase, nothing different is done except recursing
> into itself.

The method is not recursing...Super basically calls the same method in
the super class.  Look at the following example:

class a(object):
   def a(self):
      print "class A"

class b(a):
   def a(self):
      print "class B"
      super(b, self).a()

test = b()
print test.a()

This code should yield the result:

class B
class A

Does this help you?

Cheers,

Nate L.


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to