[issue26210] `HTMLParser.handle_data` may be invoked although `HTMLParser.reset` was invoked

Xiang Zhang report at bugs.python.org
Wed Jan 27 04:26:52 EST 2016


Xiang Zhang added the comment:

Hmm, I don't know whether I am right or not. Let's wait for a core member to clarify. If I am wrong, I am quite sorry.

I don't think invoking reset when parsing should raise an error(and I don't know how to achieve that). When to invoke a subroutine is determined by the programmer. You can always put a well-written subroutine in some wrong place and then cause error. And I don't see how to stop the process either.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26210>
_______________________________________


More information about the Python-bugs-list mailing list