This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: HTMLParseError derivation
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.6, Python 2.5
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: bayerf, benjamin.peterson
Priority: normal Keywords:

Created on 2009-05-16 23:50 by bayerf, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg87944 - (view) Author: Fred Bayer (bayerf) Date: 2009-05-16 23:50
Acoording to documentation, only a few exceptions should inherit
directly from Exception, most should inherit from StandardError.
However, HTMLParser.HTMLParseError doesn't conform:

isinstance(HTMLParser.HTMLParseError("foo"),StandardError) --> False
msg87945 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-05-17 01:21
Actually, the new advice to derive from Exception since StandardError is
being removed in Python 3.
History
Date User Action Args
2022-04-11 14:56:49adminsetgithub: 50293
2009-05-17 01:21:56benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg87945

resolution: wont fix
2009-05-16 23:50:01bayerfcreate