iode.Table.__len__
- Table.__len__() int[source]
Number of lines of the table.
Equivalent to
Table.nb_lines().Notes
The special divider line is not taken into account in the returned number of lines.
Examples
>>> from iode import Table >>> table = Table() >>> table DIVIS | 1 | TITLE | ----- | -------- CELL | | "#S" ----- | -------- nb lines: 4 nb columns: 2 language: 'ENGLISH' gridx: 'MAJOR' gridy: 'MAJOR' graph_axis: 'VALUES' graph_alignment: 'LEFT'
>>> len(table) 4 >>> # equivalent to nb_lines >>> table.nb_lines 4