I have the following code:
reader = csv.DictReader(f, delimiter='\x01', lineterminator="\x02")
for line in (reader + my_dict_of_values):
do_something()
Is there a way that I can iterate over two different types like in the above without calling another function? Otherwise I get: TypeError: unsupported operand type(s) for +: 'instance' and 'dict'
.