Chris Angelico <ros...@gmail.com>:

> Since we're so good at it on this list, I will nit-pick: that's not a
> context manager class, that's an iterator class. A context manager has
> __enter__ and __exit__, an iterator has __iter__ (returning self) and
> __next__ (returning or raising StopIteration).

Excellent. Learnings will never end.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to