larray.Session.keys

Session.keys()[source]

Returns a view on the session’s keys.

Returns:View on the session’s keys.

See also

Session.names

Examples

>>> arr1, arr2, arr3 = ndtest((2, 2)), ndtest(4), ndtest((3, 2))
>>> s = Session([('arr2', arr2), ('arr1', arr1), ('arr3', arr3)])
>>> # similar to names by follows the internal order
>>> list(s.keys())
['arr2', 'arr1', 'arr3']
>>> # gives the names of arrays in alphabetical order
>>> s.names
['arr1', 'arr2', 'arr3']