parameters: (name, value, **kwargs)
return_statement: return cookielib.Cookie(**result)
docstring: Make a cookie from underspecified parameters.
  
      By default, the pair of `name` and `value` will be set for the domain ''
      and sent on every request (this is sometimes called a "supercookie").
docstring_summary: Make a cookie from underspecified parameters.
docstring_tokens: Make a cookie from underspecified parameters .
function: def create_cookie(name, value, **kwargs):
      """Make a cookie from underspecified parameters.
  
      By default, the pair of `name` and `value` will be set for the domain ''
      and sent on every request (this is sometimes called a "supercookie").
      """
      result = {
          'version': 0,
          'name': name,
          'value': value,
          'port': None,
          'domain': '',
          'path': '/',
          'secure': False,
          'expires': None,
          'discard': True,
          'comment': None,
          'comment_url': None,
          'rest': {'HttpOnly': None},
          'rfc2109': False,
      }
  
      badargs = set(kwargs) - set(result)
      if badargs:
          err = 'create_cookie() got unexpected keyword arguments: %s'
          raise TypeError(err % list(badargs))
  
      result.update(kwargs)
      result['port_specified'] = bool(result['port'])
      result['domain_specified'] = bool(result['domain'])
      result['domain_initial_dot'] = result['domain'].startswith('.')
      result['path_specified'] = bool(result['path'])
  
      return cookielib.Cookie(**result)
function_tokens: def create_cookie ( name , value , * * kwargs ) : result = { 'version' : 0 , 'name' : name , 'value' : value , 'port' : None , 'domain' : '' , 'path' : '/' , 'secure' : False , 'expires' : None , 'discard' : True , 'comment' : None , 'comment_url' : None , 'rest' : { 'HttpOnly' : None } , 'rfc2109' : False , } badargs = set ( kwargs ) - set ( result ) if badargs : err = 'create_cookie() got unexpected keyword arguments: %s' raise TypeError ( err % list ( badargs ) ) result . update ( kwargs ) result [ 'port_specified' ] = bool ( result [ 'port' ] ) result [ 'domain_specified' ] = bool ( result [ 'domain' ] ) result [ 'domain_initial_dot' ] = result [ 'domain' ] . startswith ( '.' ) result [ 'path_specified' ] = bool ( result [ 'path' ] ) return cookielib . Cookie ( * * result )