Yannick Duchêne added the comment: Thanks Xiang, for the clear explanations.
So an error should be triggered when `reset` is invoked while it should not. And remains the issue about how to stop the parser: should an exception be raised and caught at an outer invocation level? Something like raising StopIteration? (I don't enjoy using exceptions for flow control, but that seems to be the Python way, cheese). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26210> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com