Comment by int_19h
5 months ago
It doesn't change the fact that it's a function that mutates its parameter, even if it eventually calls a method to do so. And, furthermore, it is idiomatic to call next(iter) rather than iter.__next__(), even when no default value is expected.
No comments yet
Contribute on Hacker News ↗