SimpleXMLRPCServer

Brian Quinlan brian at sweetapp.com
Mon Jan 7 13:17:35 EST 2002


Lewis Bergman wrote:
> Uhh... because I don't know what I am doing??

:-) This pattern is similar to the one described in the second usage
example, in the SimpleXMLRPCServer doc string. But it relies on dynamic
runtime magic that might be a little obscure.

> > I haven't tested this so don't be shocked if there you need to
fiddle
> > with it to make it work. Let me know if it doesn't do what you want
it
> > to do.
> Actually this worked exactly as you wrote it! Thanks!

Cool.

> > Also, masking module names with variable names is probably a bad
idea.
> Yes, I've been hearing that alot lately. Thanks for the advice and the
> code.
> If I survive long enough I may learn something.

Then some more free advice: don't use "from x import *" unless you
really need to. It keeps your module's namespace from being polluted by
irrelevant crap.

Cheers,
Brian





More information about the Python-list mailing list