Cython: Columns: added a keys() method that returns all element names

This commit is contained in:
Celine Mercier
2020-06-17 18:53:41 +02:00
parent 7593673f3f
commit 24b1dab573
2 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,7 @@ cdef class Column(OBIWrapper) :
cdef inline OBIDMS_column_p pointer(self)
cdef read_elements_names(self)
cpdef list keys(self)
@staticmethod
cdef type get_column_class(obitype_t obitype, bint multi_elts, bint tuples)

View File

@ -323,6 +323,9 @@ cdef class Column(OBIWrapper) :
free(elts_names_b)
return elts_names_list
cpdef list keys(self):
return self._elements_names
# Column alias property getter and setter
@property