Invocation, how to
Robert Brewer
fumanchu at amor.org
Wed Dec 10 16:44:13 EST 2003
One way would be:
getattr(foo, "method")(arg1, arg2, ...)
FuManChu
> -----Original Message-----
> From: Raaijmakers, Vincent (IndSys,GE Interlogix)
> [mailto:Vincent.Raaijmakers at ge.com]
> Sent: Wednesday, December 10, 2003 1:32 PM
> To: python-list at python.org
> Subject: Invocation, how to
>
>
> I admit.. must be in the manual but can't find it.
>
>
> If my method is a string, say "method"
>
> How to call foo."method" ?
> This is invocation in java, but how to do it in python?
>
> Thanks,
> Vincent
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list