def AutoProxy(token, serializer, manager=None, authkey=None, exposed=None, incref=True):
 _Client = listener_client[serializer][1]
 if (exposed is None):
  conn = _Client(token.address, authkey=authkey)
  try:
   exposed = dispatch(conn, None, 'get_methods', (token,))
  finally:
   conn.close()
 if ((authkey is None) and (manager is not None)):
  authkey = manager._authkey
 if (authkey is None):
  authkey = process.current_process().authkey
 ProxyType = MakeProxyType(('AutoProxy[%s]' % token.typeid), exposed)
 proxy = ProxyType(token, serializer, manager=manager, authkey=authkey, incref=incref)
 proxy._isauto = True
 return proxy

def AutoProxy ( token , serializer , manager = None , authkey = None , exposed = None , incref = True ) : _Client = listener_client [ serializer ] [ 1 ] if ( exposed is None ) : conn = _Client ( token . address , authkey = authkey ) try : exposed = dispatch ( conn , None , 'get_methods' , ( token , ) ) finally : conn . close ( ) if ( ( authkey is None ) and ( manager is not None ) ) : authkey = manager . _authkey if ( authkey is None ) : authkey = process . current_process ( ) . authkey ProxyType = MakeProxyType ( ( 'AutoProxy[%s]' % token . typeid ) , exposed ) proxy = ProxyType ( token , serializer , manager = manager , authkey = authkey , incref = incref ) proxy . _isauto = True return proxy
return an auto-proxy for token .