xmlrpclib question
Eric Texier
erict at millfilm.co.uk
Mon Jul 22 13:58:18 EDT 2002
Yes, thank you I understand now.
This is a nasty habit to have to believe that:
if server is not None: == if server:
Fredrik Lundh wrote:
> Eric Texier wrote:
> > I posted this question earlier but I am still confuse about what
> > I am doing wrong. Why, in the class 'clientRootTask' just taking
> > out the 'if' statement will make it work:
>
> what did you expect that if statement to do?
>
> as written, you're asking the server if it's "true". to figure that
> out, Python calls the proxy object's __nonzero__ method, which
> the proxy happily forwards to the server.
>
> maybe you meant "if server is not None"?
>
> </F>
More information about the Python-list
mailing list