larray.Session.names

Session.names

Returns the list of names of the array objects in the session. The list is sorted alphabetically and does not follow the internal order.

Returns:list of str

See also

Session.keys

Examples

>>> arr1, arr2, arr3 = ndtest((2, 2)), ndtest(4), ndtest((3, 2))
>>> s = Session([('arr2', arr2), ('arr1', arr1), ('arr3', arr3)])
>>> # print array's names in the alphabetical order
>>> s.names
['arr1', 'arr2', 'arr3']
>>> # keys() follows the internal order
>>> list(s.keys())
['arr2', 'arr1', 'arr3']