On Tue, 15 Feb 2011 12:29:36 -0800, Jeremy wrote:

>     def __getattr__(self, name):
>         for I in self.items:
>             # How can I pass arguments to I.__dict__[name]?
>             I.__dict__[name]

The same way you would pass arguments to any other function: with 
function call syntax.

I.__dict__[name](arg1, arg2, arg3, ...)


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

Reply via email to