Open rogerlew opened 6 months ago
patch for jsonpickle
/usr/local/lib/python3.10/dist-packages/jsonpickle/unpickler.py
469 def _restore_reduce(self, obj):
470 """
471 Supports restoring with all elements of __reduce__ as per pep 307.
472 Assumes that iterator items (the last two) are represented as lists
473 as per pickler implementation.
474 """
475 proxy = _Proxy()
476 self._mkref(proxy)
477 reduce_val = list(map(self._restore, obj[tags.REDUCE]))
478 if len(reduce_val) < 5:
479 reduce_val.extend([None] * (5 - len(reduce_val)))
480 f, args, state, listitems, dictitems = reduce_val
481
482 if f == tags.NEWOBJ or getattr(f, '__name__', '') == '__newobj__':
483 # mandated special case
484 cls = args[0]
485 if not isinstance(cls, type):
486 cls = self._restore(cls)
487 stage1 = cls.__new__(cls, *args[1:])
488 else:
489 if f.__name__ == "scalar" and args[0] == 0.0:
490 args = list(args)
491 args[0] = np.dtype(np.float64)
492 args = tuple(args)
493
494 stage1 = f(*args)
495
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jsonpickle
>>> jsonpickle.__version__
'3.0.4
fml
remove php7.4 from apache mods
pull wepppy
migrate flask database
rebuild and enable weppcloud2/microservices
peridot
wepppyo3
rebuild topaz
pull rosetta