io_tools

File Purpose: misc tools for input/output to files.

For checking file existence or creating new files, see os_tools instead.

Functions

attempt_literal_eval(s)

returns ast.literal_eval(s), or s if the literal_eval fails.

read_idl_params_file(filename, *[, eval, ...])

parse idl file of params into a python dictionary of params.

read_python_params_file(filename, *[, eval, ...])

parse python file of params into a python dictionary of params.

updated_idl_params_file(filename, params, *)

create updated idl file, like at filename but updating the indicated params.