def _get_route_variables(match, default_kwargs=None):
 kwargs = (default_kwargs or {})
 kwargs.update(match.groupdict())
 if kwargs:
  args = tuple((value[1] for value in sorted(((int(key[2:(-2)]), kwargs.pop(key)) for key in kwargs.keys() if (key.startswith('__') and key.endswith('__'))))))
 else:
  args = ()
 return (args, kwargs)

def _get_route_variables ( match , default_kwargs = None ) : kwargs = ( default_kwargs or { } ) kwargs . update ( match . groupdict ( ) ) if kwargs : args = tuple ( ( value [ 1 ] for value in sorted ( ( ( int ( key [ 2 : ( - 2 ) ] ) , kwargs . pop ( key ) ) for key in kwargs . keys ( ) if ( key . startswith ( '__' ) and key . endswith ( '__' ) ) ) ) ) ) else : args = ( ) return ( args , kwargs )
returns for a route match .