overload operator()?

Dan Bishop danb_83 at yahoo.com
Mon Dec 16 20:32:26 EST 2002


"Bruce Dickey" <brucedickey at micron.com> wrote in message news:<atlbb0$bqp$1 at admin-svc.micron.com>...
> Is there a way to overload () in Python to call a user-defined function?
> I've overloaded + | ~ etc, but () has me stumped.

def __call__(self, param):



More information about the Python-list mailing list