bundles / scipy latest / scipy / _external / array_api_extra / _lib / _utils / _helpers / pickle_unflatten
function
scipy._external.array_api_extra._lib._utils._helpers:pickle_unflatten
Signature
def pickle_unflatten(instances: Iterable[object], rest: FlattenRest) → AnySummary
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