3 ms·
In many cases Python generators are better than lists: https://wiki.python.org/moin/Generators https://wiki.python.org/moin/Generators E.g. consider xrange() v
by klipt 7y ago
In many cases Python generators are better than lists: https://wiki.python.org/moin/Generators https://wiki.python.org/moin/Generators
E.g. consider xrange() vs (Python 2) range().