4 ms·
.next() makes sense when you think that generators are also iterables and must support the corresponding interface. having () and .next() would violate Python
by brtzsnr 17y ago
.next() makes sense when you think that generators are also iterables and must support the corresponding interface.
having () and .next() would violate Python philosophy: only one way to do it.