Invocation, how to

Raaijmakers, Vincent (IndSys, Raaijmakers, Vincent (IndSys,
Wed Dec 10 17:59:24 EST 2003


Oh.. this is soooooo easy.

python rules

Thanks.


-----Original Message-----
From: python-list-bounces+vincent.raaijmakers=ge.com at python.org
[mailto:python-list-bounces+vincent.raaijmakers=ge.com at python.org]On
Behalf Of Robert Brewer
Sent: Wednesday, December 10, 2003 4:44 PM
To: python-list at python.org
Subject: RE: Invocation, how to


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
> 

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





More information about the Python-list mailing list