Minor improvements in _obidms Cython layer
This commit is contained in:
@ -293,13 +293,8 @@ cdef class OBIView :
|
|||||||
|
|
||||||
|
|
||||||
def __repr__(self) :
|
def __repr__(self) :
|
||||||
|
|
||||||
cdef str s
|
cdef str s
|
||||||
cdef OBIDMS_column column
|
s = str(self.name) + ", " + str(self.comments) + ", " + str(self.pointer.line_count) + " lines\n"
|
||||||
cdef OBIDMS_column_p column_p
|
|
||||||
|
|
||||||
s = self.name
|
|
||||||
s = s + ", " + self.comments + ", " + str(self.pointer.line_count) + " lines\n"
|
|
||||||
for column_name in self.columns :
|
for column_name in self.columns :
|
||||||
s = s + self.columns[column_name].__repr__() + '\n'
|
s = s + self.columns[column_name].__repr__() + '\n'
|
||||||
return s
|
return s
|
||||||
|
Reference in New Issue
Block a user