From 7970591813b79975cd28f31e772e5af1baffde54 Mon Sep 17 00:00:00 2001 From: hpk Date: Wed, 31 Jan 2007 21:34:29 +0100 Subject: [PATCH] [svn r37693] Some considerations regarding the experimental Gateway/Remote Path implementation code. Also making it "py.__." importable but not advertising it for 0.9 at all. It's an interesting feature for 1.0 :) --HG-- branch : trunk --- py/path/gateway/TODO.txt | 24 ++++++++++++++++++++++++ py/path/gateway/__init__.py | 1 + 2 files changed, 25 insertions(+) create mode 100644 py/path/gateway/TODO.txt create mode 100644 py/path/gateway/__init__.py diff --git a/py/path/gateway/TODO.txt b/py/path/gateway/TODO.txt new file mode 100644 index 000000000..da94d17f2 --- /dev/null +++ b/py/path/gateway/TODO.txt @@ -0,0 +1,24 @@ +I think the nice code in this directory +should be refactored so that you can use +it like this: + + rp = gateway.get_remote_path(relpath) + +and relpath could be absolute, relative (should +follow remote-platform syntax) or None/"." (the +current dir on the other side). + +The tricky part probably is defining sensible +setup/teardown semantics with respect to +starting the "Path" server on the other side, +we at least don't want to have multiple threads +that serve path requests and maybe we want +to be able to explicitely shutdown a once +started RemotePath server (not sure though). + +For a single-threaded py.execnet it might be helpful to be +able to install new network messages (which are lower level +than remote_exec() and work with callbacks, so don't follow +the nice "synchronous" programming model that you get with +threads/greenlets/tasklets). + diff --git a/py/path/gateway/__init__.py b/py/path/gateway/__init__.py new file mode 100644 index 000000000..792d60054 --- /dev/null +++ b/py/path/gateway/__init__.py @@ -0,0 +1 @@ +#