Marcin201 a écrit :

class Foo:
    def __init__(self):
        print "Hello"
        self.f = self.fxn

Maybe self.f = self.fxn() is what you want. Note the '()'.

--
Michel Leunen
http://linux.leunen.com
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to