[issue32933] mock_open does not support iteration around text files.

Anthony Flury report at bugs.python.org
Mon Jul 9 13:04:01 EDT 2018


Anthony Flury <anthony.flury at btinternet.com> added the comment:

But the __next__ is a method on the iterator; 

So long as __iter__ returns a valid iterator (which it does in my pull request), it will by definition support __next___

Although it is entirely possible that I have misunderstood what you are saying.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32933>
_______________________________________


More information about the Python-bugs-list mailing list