Package rats :: Module serialize
[hide private]
[frames] | no frames]

Module serialize

source code

State saving utilies.

Easily readable and editable. Support objects as well as simpler data types.

The original file is : toonloop/trunk/py/rats/serialize.py

Classes [hide private]
  SerializeError
Error occuring while trying to save serialized data.
  UnserializeError
Error occuring while trying to load serialized data.
  Serializable
Any class that is serializable using these tools should extend this one.
Functions [hide private]
 
save(filename, obj)
Saves any python data type to a file.
source code
 
load(filename)
Loads any python data type from a file.
source code
Variables [hide private]
  __package__ = 'rats'

Imports: jelly, pprint


Function Details [hide private]

save(filename, obj)

source code 

Saves any python data type to a file.

Might throw an SerializeError

load(filename)

source code 

Loads any python data type from a file.

Might throw an UnserializeError