Comment on Why Java (and almost every other programming language) sucksComments−brtzsnr16y.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.
Comments
.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.