def obtain(proxy):
 if (not isproxy(proxy)):
  raise TypeError('object must be a proxy')
 if isinstance(proxy, function):
  globals = getconn(proxy)._local_namespace
  return _load_function(_dump_function(proxy), globals)
 else:
  return pickle.loads(getconn(proxy).modules.cPickle.dumps(proxy, pickle.HIGHEST_PROTOCOL))

def obtain ( proxy ) : if ( not isproxy ( proxy ) ) : raise TypeError ( 'object must be a proxy' ) if isinstance ( proxy , function ) : globals = getconn ( proxy ) . _local_namespace return _load_function ( _dump_function ( proxy ) , globals ) else : return pickle . loads ( getconn ( proxy ) . modules . cPickle . dumps ( proxy , pickle . HIGHEST_PROTOCOL ) )
obtains a remote object .