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_t
You forgot to call the list() type:
list_of_tuples = list()
# ----------------^ You didn't do this.
Your exception (as posted in the comments) shows that you tried to call .append on the type object instead:
>>> list.append(())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: descriptor 'append' requires a 'list' object but received a 'tuple'
>>> list().append(())
Better use [] to produce an empty list in any case:
list_of_tuples = []