xml-rpc module question

Fredrik Lundh fredrik at effbot.org
Tue Dec 19 19:44:26 EST 2000


I wrote:
>     def call(self, method, params):
>         if method == 'CubeIt':
>             return self.CubeIt(params)

correction: params is a tuple.  tuples cannot be cubed.

better make that:

             return self.CubeIt(params[0])

or, better:

             return apply(self.CubeIt, params)

(anybody know a good book on debugging with print
statements? ;-)

</F>





More information about the Python-list mailing list