bundles / scipy 1.17.1 / scipy / _lib / array_api_extra / _lib / _utils / _helpers / pickle_unflatten
function
scipy._lib.array_api_extra._lib._utils._helpers:pickle_unflatten
source: /scipy/_lib/array_api_extra/_lib/_utils/_helpers.py :470
Signature
def pickle_unflatten ( instances : Iterable[object] , rest : FlattenRest ) → Any Summary
Reverse of pickle_flatten.
Parameters
instances: IterableInner objects to be reinserted into the flattened container.
rest: FlattenRestExtra bits, as returned by
pickle_flatten.
Returns
: objectThe outer object originally passed to
pickle_flattenafter a pickle->unpickle round-trip.
Notes
The instances iterable must yield at least the same number of elements as the ones returned by pickle_flatten, but the elements do not need to be the same objects or even the same types of objects. Excess elements, if any, will be left untouched.
See also
- pickle.loads
Standard unpickle function.
- pickle_flatten
Serializing function.
Aliases
-
scipy.differentiate.xpx.testing.pickle_unflatten