proxy for xmlrpc calls

Fredrik Lundh fredrik at pythonware.com
Mon Aug 14 08:14:58 EDT 2006


Xavier wrote:

> I'm attempting to write a proxy for xmlrpc calls.

why not use the one in the standard library?

> I want to expand this to do something like;
>
> >>a=MagicObject()
> >>x = a.b.c.d
>
> Then on the last __getattr__ send a call over xmlrpc.
> How do I determine when the last __getattr__ will be?

you can't determine that.

(and XML-RPC doesn't support attribute access either, so this sounds
like a rather pointless exercise)

> I thought about getting the source code from the correct frame, but
> I don't think thats a good solution.

getting the source won't help, unless you're willing to violate Python's
execution model.

> Any ideas?

stick to the standard.

</F> 






More information about the Python-list mailing list