guy lateur wrote:
> Hi all,
> 
> Suppose you have this class:
> 
> class foo:
>     def bar():
> 
> Suppose you also have the strings "foo" and "bar". How can you obtain the 
> function foo.bar()?
> 
> Surely somebody knows..
> 
> TIA,
> g
> 
> 


Would that do?

 >>> class foo:
        @staticmethod
        def bar():
                pass

        
 >>> foo.bar
<function bar at 0x00B445F0>
 >>>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to