Dear All,

Many thanks

Colin
"C Gillespie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear All,
>
> I have a simple class
> class hello:
>     def world(self):
>         return 'hello'
>     def test(self,arg):
>         return self.arg
>
> When I want to do is:
> >hello.test('world')
> 'hello'
>
> i.e. pass the method name as an argument. How should I do this?
>
> Thanks
>
> Colin
>
>


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

Reply via email to