[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

Antoine Pitrou report at bugs.python.org
Wed Aug 4 15:38:25 CEST 2010

Antoine Pitrou <pitrou at free.fr> added the comment:

Ah, I see. Well I don't think we can change inheritance in bugfix branches anyway.
In 3.x, though, StandardError has disappeared and sqlite3.Warning inherits directly from Exception:

>>> import sqlite3
>>> sqlite3.Warning.__bases__
(<class 'Exception'>,)


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list