parameters: (token)
docstring: Parse a Unicode style code-point range. Return either a single value or a
       tuple of (start, end) for a range of code-points.
docstring_summary: Parse a Unicode style code-point range. Return either a single value or a
       tuple of (start, end) for a range of code-points.
docstring_tokens: Parse a Unicode style code - point range . Return either a single value or a tuple of ( start end ) for a range of code - points .
function: def codepoints_parse(token):
    '''Parse a Unicode style code-point range. Return either a single value or a
       tuple of (start, end) for a range of code-points.'''
    def fromHex(token):
      return int(token, 16)
    parts = token.split('..')
    if len(parts) == 2:
      return (fromHex(parts[0]), fromHex(parts[1]))
    elif len(parts) == 1:
      return fromHex(parts[0])
    else:
      raise ValueError(token)
function_tokens: def codepoints_parse ( token ) : def fromHex ( token ) : return int ( token , 16 ) parts = token . split ( '..' ) if len ( parts ) == 2 : return ( fromHex ( parts [ 0 ] ) , fromHex ( parts [ 1 ] ) ) elif len ( parts ) == 1 : return fromHex ( parts [ 0 ] ) else : raise ValueError ( token )