New submission from Sebastian Rittau <[email protected]>:
HTMLParser derives from _markupbase.ParserBase, which has the following method:
class HTMLParser:
...
def error(self, message):
raise NotImplementedError(
"subclasses of ParserBase must override error()")
HTMLParser does not implement this method and the documentation for HTMLParser
(https://docs.python.org/3.6/library/html.parser.html) does not mention that
its sub-classes need to override it.
I am not sure whether this is a documentation omission, whether HTMLParser
should provide an (empty?) implementation, or whether ParserBase should not
raise a NotImplementedError (to make linters happy).
----------
messages: 304782
nosy: srittau
priority: normal
severity: normal
status: open
title: HTMLParser: undocumented not implemented method
versions: Python 3.6
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31844>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com