Pointing to function from class

Adam Clark bjrubble at shell16.ba.best.com
Tue Oct 17 02:25:43 EDT 2000


Hi.

I want something like this:

def SomeFunc () :
  # doesn't take self and can be called from outside a class

class Class :
  f = SomeFunc

c = Class()
c.f()

I can't keep the class from trying to bind the function.

Help!
Thanks
Adam



More information about the Python-list mailing list