Look at http://docs.python.org/ref/callable-types.html

>>> class Test(object):
...     def __call__(self):
...         print "the instance was called"
...
>>> t = Test()
>>> t()
the instance was called

Is this what you wanted?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to