[New-bugs-announce] [issue6043] HTMLParseError derivation

Fred Bayer report at bugs.python.org
Sun May 17 01:50:02 CEST 2009

New submission from Fred Bayer <python at bayerf.de>:

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

components: Library (Lib)
messages: 87944
nosy: bayerf
severity: normal
status: open
title: HTMLParseError derivation
type: behavior
versions: Python 2.5, Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list