|
|
|
|
|
by masklinn
4611 days ago
|
|
> where in Python it's not common to call next() In fact it should never happen, that's what the `iter` and `next` builtins are for. The only use case for calling __next__ by hand is iffy as hell, it's overloading it while inheriting from an iterator. |
|