Glyph Lefkowitz (glyf) wrote,
Glyph Lefkowitz
glyf

solve for X


class A(object):
    def m(self, alpha):
        print 'A.m', alpha

class B(A):
    def m(self, alpha, beta):
        print 'B.m', alpha, beta
        super(B, self).m(alpha)

class C(B):
    def m(self, alpha, beta, gamma):
        print 'C.m', alpha, beta, gamma
        super(C, self).m(alpha, beta)

class D(B):
    def m(self, alpha, beta, gamma, delta):
        print 'D.m', alpha, beta, gamma, delta
        super(D, self).m(alpha, beta)

class E(C, D):
    def m(self, alpha, beta, gamma, delta, epsilon):
        print 'E.m', alpha, beta, gamma, delta, epsilon
        x = ???
        super(E, self).m(alpha, *x)

E().m(1, 2, 3, 4, 5)
Subscribe

  • Last Post Ever

    It took me a while to bother to move my old posts over to my new blog, but LiveJournal's addition of obnoxious, mandatory, full-screen popover…

  • New Blog

    Those of you following me on blendix already know this, but I have a new blog. While I may post something here occasionally from now on, it will…

  • Divmod: Reloaded

    Hot on the heels of the Twisted release, Divmod has a new, and hopefully much more comprehensible, sight design and layout. Check it out over at…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 14 comments

  • Last Post Ever

    It took me a while to bother to move my old posts over to my new blog, but LiveJournal's addition of obnoxious, mandatory, full-screen popover…

  • New Blog

    Those of you following me on blendix already know this, but I have a new blog. While I may post something here occasionally from now on, it will…

  • Divmod: Reloaded

    Hot on the heels of the Twisted release, Divmod has a new, and hopefully much more comprehensible, sight design and layout. Check it out over at…