Hi

On the page http://soaplib.github.com/soaplib/2_0/pages/helloworld.html I read

class HelloWorldService(DefinitionBase):
    @soap(String,Integer,_returns=Array(String))
    def say_hello(self,name,times):
        results = []
        for i in range(0,times):
            results.append('Hello, %s'%name)
        return results


What's the purpose of the 'self' in the say_hello method.  Are there any 
examples of it being used?

(I should add that I'm an experienced Python programmer, and know the purpose 
of self, and for that matter the staticmethod decorator.)

Best regards


Jonathan

-- 
The Open University is incorporated by Royal Charter (RC 000391), an exempt 
charity in England & Wales and a charity registered in Scotland (SC 038302).

_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to