parameters: (token, serializer, manager=None, authkey=None,
                exposed=None, incref=True)
return_statement: return proxy
docstring: Return an auto-proxy for `token`
docstring_summary: Return an auto-proxy for `token`
docstring_tokens: Return an auto - proxy for token
function: def AutoProxy(token, serializer, manager=None, authkey=None,
                exposed=None, incref=True):
      '''
      Return an auto-proxy for `token`
      '''
      _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
function_tokens: 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