larray.Session.keys
- Session.keys() KeysView[str] [source]
Return a view on the session’s keys.
- Returns
- View on the session’s keys.
See also
Examples
>>> axis1 = Axis("a=a0..a2") >>> group1 = axis1['a0,a1'] >> 'a01' >>> arr1, arr2 = ndtest((2, 2)), ndtest(4) >>> s = Session({'arr2': arr2, 'arr1': arr1, 'group1': group1, 'axis1': axis1}) >>> # similar to names by follows the internal order >>> list(s.keys()) ['arr2', 'arr1', 'group1', 'axis1']
>>> # gives the names of objects in alphabetical order >>> s.names ['arr1', 'arr2', 'axis1', 'group1']