Pyenos schrieb: > i rewrote the code following the advices from subdir of the parent thread: > > # well, table is composed of a list of columns. > # so let's stick them together > def enlargetable(table,col): > table.append(col) # the code won't return sorted lists :-o
Why should it sort the list? > return_the_fucking_table_bitch=table # assign it to a new variable to > return it > return return_the_fucking_table_bitch # :-| That isn't necessary. A simple "return table" is fine. > > def removecolfromtable(table,col): > return table.remove(col) table.remove() also returns None. > print enlargetable([[1],[2],[3]],[4]) > > # and this code works. Georg -- http://mail.python.org/mailman/listinfo/python-list