Serhiy Storchaka added the comment: About the first bug. Checking that a factory is a subclass of sqlite3.Cursor is not enough. I suppose that a subclass of sqlite3.Cursor with overridden __new__ could pass the check but cause a crash.
class BadCursor(sqlite3.Cursor): def __new__(cls, conn): return None Docs should be changed as well as the code. As for the second bug, please open a separate issue. This is more complex issue. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27861> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com