Added __len__ function do OBIViews that returns the line count

This commit is contained in:
Celine Mercier
2016-08-10 17:20:23 +02:00
parent 029d395da1
commit d3c58780a0

View File

@ -449,6 +449,10 @@ cdef class OBIView :
return (column_name in self.columns) return (column_name in self.columns)
def __len__(self):
return(self.pointer.infos.line_count)
def __str__(self) : def __str__(self) :
cdef OBIView_line line cdef OBIView_line line
cdef str to_print cdef str to_print