parameters: (*args)
return_statement: return env
docstring: Return a new spontaneous environment.  A spontaneous environment is an
      unnamed and unaccessible (in theory) environment that is used for
      templates generated from a string and not from the file system.
docstring_summary: Return a new spontaneous environment.  A spontaneous environment is an
      unnamed and unaccessible (in theory) environment that is used for
      templates generated from a string and not from the file system.
docstring_tokens: Return a new spontaneous environment . A spontaneous environment is an unnamed and unaccessible ( in theory ) environment that is used for templates generated from a string and not from the file system .
function: def get_spontaneous_environment(*args):
      """Return a new spontaneous environment.  A spontaneous environment is an
      unnamed and unaccessible (in theory) environment that is used for
      templates generated from a string and not from the file system.
      """
      try:
          env = _spontaneous_environments.get(args)
      except TypeError:
          return Environment(*args)
      if env is not None:
          return env
      _spontaneous_environments[args] = env = Environment(*args)
      env.shared = True
      return env
function_tokens: def get_spontaneous_environment ( * args ) : try : env = _spontaneous_environments . get ( args ) except TypeError : return Environment ( * args ) if env is not None : return env _spontaneous_environments [ args ] = env = Environment ( * args ) env . shared = True return env