module documentation
Pickle file loading and saving.
Exception |
|
Errors when loading a pickled pytd file. |
Function |
|
Undocumented |
Function |
|
Pickle the data. |
Function |
|
Loads and stores an ast to disk. |
Function | _ |
Load a pickle file, raising a custom exception on failure. |
Constant | _PICKLE |
Undocumented |
Loads and stores an ast to disk. Args: ast: The pytd.TypeDeclUnit to save to disk. filename: The filename for the pickled output. If this is None, this function instead returns the pickled string. open_function: A custom file opening function. src_path: Optionally, the filepath of the original source file. metadata: A list of arbitrary string-encoded metadata. Returns: The pickled string, if no filename was given. (None otherwise.)