From this link it says generators aren't initialized like iterables.
How do you add the elements of a generator to a set? Is there a better way than just a for item in generator
sort of thing and using setname.add(item)
?
The generator is that returned by a cursor.execute("SELECT ...")
command to the cursor from a connection to an sqlite3 database.