Miscellaneous¶
-
abapy.misc.dump(data, name, protocol=2)[source]¶ Dumps an object to file using
pickle.Parameters: - data (any) – object to dump.
- name (string) – file name or path to file.
Note
This function allows clean array pickling whereas standard
pickle.dumpwill raise an error ifarray.arrayare in the pickled object (which is the case of all objects in Abapy).
-
abapy.misc.load(name)[source]¶ Loads back a pickled object.
Parameters: name (string) – file name or path to file. Return type: unpickled object Note
This function allows clean array unpickling whereas standard
pickle.loadwill raise an error ifarray.arrayare in the pickled object (which is the case of all objects in Abapy).