6 ms·
Not much different, really. The biggest practical difference is that Python generators implement the iterator protocol which means it's possible to easily itera
by zeekay 14y ago
Not much different, really. The biggest practical difference is that Python generators implement the iterator protocol which means it's possible to easily iterate over them with for loops, etc.