Package gyropy :: Module g_proxy
[frames] | no frames]

Module g_proxy

source code

This will behave badly under isinstance(). if isinstance(x,y) probably not isinstance(remote_x, y). Also, dicts are passed by value instead of by reference, so if you remotely modify a dict, you will not see the modification locally.


Version: 0.23

Classes
  ProtocolError
  test0
  test0classic
  test1
  test1classic
  proxy_object
  object_store
  C_threadstate
  io_grabber
This buffers text, transmitting it in units of lines.
  io_labeler
  dropsite
  fancyprint
  pickler
  Connection
You need to call close().
  proxy_to_a_class
  remote_exec
Functions
integer
Id(object)
Return the identity of an object.
 
log(*args) source code
 
Prinfo(s) source code
 
Oid(o) source code
 
diO(s) source code
 
prinfo(s) source code
 
S(s) source code
 
deal_with_arbitrary_exception(c, boxid) source code
 
thread_within_listen(inbox, threadstate, c) source code
 
thread_within_listen_wrapper(mbox, threadstate, conn) source code
 
import_mod(name, path)
Import a module from the specified path, or, failing that, look in sys.path then for a builtin.
source code
 
s_listen(c)
This reads answers and puts them in the correct mailboxes.
source code
 
s_listen_wrapper(c, s_listen_done) source code
 
get_raise(mbox, conn) source code
 
transform_callable(onm) source code
 
create_property(onm) source code
 
class_under_proxied_instance(ocid, conn) source code
 
enh_exc_class_maker(ex_nm, ex_mod) source code
 
construct_enhanced_exception(conn, ex_nm, ex_mod, ex_clid, ex_args, trb) source code
 
test_ee() source code
 
cached_class_u_p_i(ocid, conn) source code
 
proxy_factory(oid, cloid, conn) source code
 
test_minimal() source code
 
test_simpleclass() source code
 
test_minimalclass() source code
 
test_EQ() source code
 
test_sys() source code
 
test_builtins() source code
 
test_exit() source code
 
test_globals() source code
 
test_file() source code
 
test_numpy() source code
 
test_exception() source code
 
server(name) source code
Variables
  DEBUG = 2
  LOGFILE = './g_proxy.client'
  TRANSPORTABLE_TYPES = int, float, complex, tuple, str, long, t...
  TRANSPORTABLE_TYPES_O = frozenset([Id(q) for q in TRANSPORTABL...
  NO_CI_ATTR = frozenset(['__dict__', '__class__', '__weakref__'...
  TEST = tuple([(None, False, 1, 2.0, frozenset([33, 11]), (6,),...

Imports: weakref, types, sys, cPickle, T, imp, StringIO, time, traceback, g_pipe, GM, os


Function Details

Id(object)

 

Return the identity of an object. This is guaranteed to be unique among simultaneously existing objects. (Hint: it's the object's memory address.)

Returns: integer

import_mod(name, path)

source code 

Import a module from the specified path, or, failing that, look in sys.path then for a builtin. If path is None, only look in sys.path and builtins. If path is an array containing None, replace the None with sys.path.


Variables Details

TRANSPORTABLE_TYPES

Value:
int, float, complex, tuple, str, long, types.NoneType, types.BooleanTy\
pe, types.ClassType, types.InstanceType, frozenset, set, dict

TRANSPORTABLE_TYPES_O

Value:
frozenset([Id(q) for q in TRANSPORTABLE_TYPES]+ [Id(object)])

NO_CI_ATTR

Value:
frozenset(['__dict__', '__class__', '__weakref__', '__init__', '__geta\
ttribute__', '__setattr__', '__delattr__', '__del__', '__new__'])

TEST

Value:
tuple([(None, False, 1, 2.0, frozenset([33, 11]), (6,), 'seven', {8: 9\
}, {9: {}}), complex(3.0, 4.0), (set([10]),), test1(3), test1classic(3\
), "end of equality test", test0(), test0classic(), sys, (Exception(),\
 Exception(5))])