larray.Session.values¶
-
Session.values()[source]¶ Returns a view on the session’s values.
Returns: View on the session’s values. Examples
>>> arr1, arr2, arr3 = ndtest((2, 2)), ndtest(4), ndtest((3, 2)) >>> s = Session([('arr2', arr2), ('arr1', arr1), ('arr3', arr3)]) >>> # assuming you know the order of arrays stored in the session >>> arr2, arr1, arr3 = s.values() >>> # otherwise, prefer the following syntax >>> arr1, arr2, arr3 = s['arr1', 'arr2', 'arr3'] >>> arr1 a\b b0 b1 a0 0 1 a1 2 3