mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-20 12:20:29 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user