Show More
@@ -742,7 +742,7 def compute_item_matrix(items, *args, **kwargs) : | |||||
742 | """ |
|
742 | """ | |
743 | info = _find_optimal(map(len, items), *args, **kwargs) |
|
743 | info = _find_optimal(map(len, items), *args, **kwargs) | |
744 | nrow, ncol = info['rows_numbers'], info['columns_numbers'] |
|
744 | nrow, ncol = info['rows_numbers'], info['columns_numbers'] | |
745 | return ([[ _get_or_default(items, c*nrow+i) for c in range(ncol) ] for i in range(nrow) ], info) |
|
745 | return ([[ _get_or_default(items, c*nrow+i, default=empty) for c in range(ncol) ] for i in range(nrow) ], info) | |
746 |
|
746 | |||
747 | def columnize(items, separator=' ', displaywidth=80): |
|
747 | def columnize(items, separator=' ', displaywidth=80): | |
748 | """ Transform a list of strings into a single string with columns. |
|
748 | """ Transform a list of strings into a single string with columns. |
General Comments 0
You need to be logged in to leave comments.
Login now