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.

Author serhiy.storchaka
Recipients berker.peksag, ghaering, serhiy.storchaka, tehybel, xiang.zhang
Date 2016-08-27.18:02:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472320975.46.0.43323187274.issue27861@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-08-27 18:02:55serhiy.storchakasetrecipients: + serhiy.storchaka, ghaering, berker.peksag, xiang.zhang, tehybel
2016-08-27 18:02:55serhiy.storchakasetmessageid: <1472320975.46.0.43323187274.issue27861@psf.upfronthosting.co.za>
2016-08-27 18:02:55serhiy.storchakalinkissue27861 messages
2016-08-27 18:02:55serhiy.storchakacreate