I have the following code to generate a list of tuples:
list_of_tuples = list()
for name in list_of_names:
temporary_list = [name]
date = function_that_return_a_list #like ['2014', '01', '20']
temporary_list = temporary_list + date
print temporary_list #returns the correct list of [name, '2014', '01', '20']
list_of_tuples.append(temporary_list) #crashes with the error message "TypeError: append() takes exactly one argument (0 given)"
print flist
The problem seem to be related to that the append and insert functions return None when I try and use them on the date list