Cython API: fixed a bug when printing a column
This commit is contained in:
@ -197,7 +197,6 @@ cdef class Column(OBIWrapper) :
|
||||
|
||||
def __iter__(self):
|
||||
cdef index_t line_nb
|
||||
|
||||
for line_nb in range(self.lines_used):
|
||||
yield self[line_nb]
|
||||
|
||||
@ -212,7 +211,7 @@ cdef class Column(OBIWrapper) :
|
||||
|
||||
def __str__(self) :
|
||||
cdef str to_print
|
||||
cdef Column_line line
|
||||
cdef object line
|
||||
to_print = ''
|
||||
for line in self :
|
||||
to_print = to_print + str(line) + "\n"
|
||||
|
Reference in New Issue
Block a user