{ } Raw JSON

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 : Iterable

Inner objects to be reinserted into the flattened container.

rest : FlattenRest

Extra bits, as returned by pickle_flatten.

Returns

: object

The outer object originally passed to pickle_flatten after 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