Is generator.next() visible in Python 3?
g.next() has been renamed to
g.__next__(). The reason for this is consistency: special methods like
__del__() all have double underscores (or "dunder" in the current vernacular), and
.next() was one of the few exceptions to that rule. This was fixed in Python 3.0. [*]
But instead of calling
[*] There are other special attributes that have gotten this fix;
func_name, is now