Xiang Zhang added the comment: For the first issue, the doc says:
The cursor method accepts a single optional parameter cursorClass. If supplied, this must be a custom cursor class that extends sqlite3.Cursor. So I think we should check the type and then raise TypeError. For the second issue, it seems it just hits the Py_CLEAR comments. issue27861 tries to fix this. Besides, it also alters Connection.cursor's doc since it now does not reflects the implementation. ---------- keywords: +patch nosy: +xiang.zhang Added file: https://bugs.python.org/file44227/issue27861.patch _______________________________________ 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