overload operator()?

Chris Liechti cliechti at gmx.net
Mon Dec 16 15:30:49 EST 2002


"Bruce Dickey" <brucedickey at micron.com> wrote in 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.

that would be __call__ but some people say that overloading operators leads 
to confusing code...

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list