def wsgi_path_item(environ, name):
 try:
  return environ['wsgiorg.routing_args'][1][name]
 except (KeyError, IndexError):
  return None

def wsgi_path_item ( environ , name ) : try : return environ [ 'wsgiorg.routing_args' ] [ 1 ] [ name ] except ( KeyError , IndexError ) : return None
extract the value of a named field in a url .