"prove"

David wizzardx at gmail.com
Thu May 8 10:02:43 EDT 2008


>  classname.functionname(objectname)

Do you mean something like this?

class myclass:
    @staticmethod
    def myfunction(myobject): pass

myobject = None
myclass.myfunction(myobject)

If so, then you want to check the staticmethod decorator, described here:

http://docs.python.org/lib/built-in-funcs.html

David.



More information about the Python-list mailing list