Demo entry 2756433

partial

   

Submitted by anonymous on Sep 26, 2015 at 23:30
Language: Python. Code size: 187 Bytes.

class Foo(object):
    def meth(self, a):
        print "meth(%d)" % a

    def dispatch(self, x, a, func):
        print "dispatch: x=%d" % x
        func(self, a)


f = Foo()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).