Xiang Zhang added the comment: After reading Issue26210, I can get the AssertionError when there is a self.reset() in handle_endtag. I don't think it's proper to use reset in the process of parsing. From the samples I find on Web, reset is commonly used to set extra attributes on the parser so you can apply your own logic when parsing. I can not understand why reset is called in handle_endtag.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26211> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com