[py-svn] r6970 - in py/dist/py: execnet path/doc
hpk at codespeak.net
hpk at codespeak.net
Sun Oct 17 06:26:19 CEST 2004
Author: hpk
Date: Sun Oct 17 06:26:19 2004
New Revision: 6970
Removed:
py/dist/py/execnet/README.txt
py/dist/py/path/doc/
Log:
erased old and wrong doc files
Deleted: /py/dist/py/execnet/README.txt
==============================================================================
--- /py/dist/py/execnet/README.txt Sun Oct 17 06:26:19 2004
+++ (empty file)
@@ -1,48 +0,0 @@
-how remote execution is supposed to be used
--------------------------------------------
-
-- bootstrap: client initializes server loop
- on the server. Note that both client and server
- run the same gateway.SocketGateway thread,
- accepting incoming source code and offering
- a remote invocation API. Thus the two hosts
- are symetrically gatewaying calls to each other.
-
- a client registers with a server by invoking
- shpy.net.register.register('server:port'). The server
- is expected to be a 'startserver.py' i.e. a
- server which unpickles strings and executes them.
-
-- in order to remotely execute source code you call
-
- exec_remote(source)
-
- on your gateway. this will asynchronously execute
- the given source code on the other side. Note that there
- there is no return value, just as with the usual
- python 'exec' statement. exec_remote returns
- immediately and does not actually guarantee that
- your source code is executed on the other side.
-
- Note that all other API calls use this
- low level mechanism in order to implement
- control/synchronous mechanisms.
-
-- in order to get a result a more higher level
- function can be invoked:
-
- call_asynchronous(callback, func, *args, **kwargs)
-
- will send the source code of 'func' and invoke
- it on the other side with the given arguments.
- this will not return any value directly but instead
- invoke the given callback with the result when and if
- it arrives from the remote execution of 'func'.
-
- res = call_synchronous(func, *args, **kwargs)
-
- this will only returns after it received a result.
-
-# XXX concept for object references (the above API
- does not differentiate between pickleable/copyable values
- and remote objects.
More information about the pytest-commit
mailing list