Snowfakery icon indicating copy to clipboard operation
Snowfakery copied to clipboard

Pickle Refactor

Open prescod opened this issue 3 years ago • 0 comments

  1. Move Snowfakery-specific _DISPATCH_TABLE and _SAFE_CLASSES up a level to the place where other Snowfakery-specific code lives. Otherwise the pickler is Snowfakery-agnostic and does not even import other Snowfakery classes.

  2. Move the pickling and unpickling stuff into a class so I can inject the _DISPATCH_TABLE and _SAFE_CLASSES. Also allows me to do away with a Class variable called RestrictedUnpickler.count which was ugly.

prescod avatar Jun 06 '22 18:06 prescod