xml-rpc module question

Fredrik Lundh fredrik at effbot.org
Wed Dec 20 01:44:26 CET 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? ;-)


More information about the Python-list mailing list