first of all you can execute code remotely, e.g.,
conn.execute(""
class Foo(subprocess.Popen):
...
""")
or send files (rpyc.upload) and import them.
but i can recommend not trying to extend classes. i find the OO model very
weak, and would prefer to build "stacks" of objects wrapping one another
(much more composable).
you can have a look at https://plumbum.readthedocs.org/en/latest/ --
another library of mine and see how it's done there (or just use it :))
-tomer
-----------------------------------------------------------------
*Tomer Filiba*
tomerfiliba.com <http://www.facebook.com/tomerfiliba>
<http://il.linkedin.com/in/tomerfiliba>
On Thu, Jan 22, 2015 at 11:09 AM, M S Vishwanath Bhat <[email protected]>
wrote:
> Hi,
>
> I am quite inexperienced in Object Oriented concepts and I'm learning OOP
> concepts of python and trying to apply it.
>
> Is it really possible to extend the subprocess.Popen class of remote
> machines? I am using zero-deploy and can't have my custom services in
> remote nodes.
>
> Any help/pointer is appreciated.
>
> Thanks,
> MS
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "rpyc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
---
You received this message because you are subscribed to the Google Groups
"rpyc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.