>>>>class Test(object): > > ... def __call__(self): > ... print "the instance was called" > ... > >>>>t = Test() >>>>t() > > the instance was called > > Is this what you wanted?
Yeah! Thanks. -- http://mail.python.org/mailman/listinfo/python-list
>>>>class Test(object): > > ... def __call__(self): > ... print "the instance was called" > ... > >>>>t = Test() >>>>t() > > the instance was called > > Is this what you wanted?
Yeah! Thanks. -- http://mail.python.org/mailman/listinfo/python-list