ENH: Added versioning logic to objects.

In order to be able to load from saved state generated by old
code, we need to have a notion of the version of the saved state.
This commit is contained in:
Delaney Granizo-Mackenzie
2015-03-04 14:17:12 -05:00
parent 64eed84bff
commit c6596e2ee2
11 changed files with 297 additions and 17 deletions
+5
View File
@@ -1,3 +1,8 @@
# Label for the serialization version field in the state returned by
# __getstate__.
VERSION_LABEL = '_stateversion_'
class SerializeableZiplineObject(object):
"""
This class implements the basic set and get state methods used for