New submission from STINNER Victor <victor.stin...@haypocalc.com>: Add call to pysqlite_check_connection() on the follow methods:
* create_function() * create_aggregate() * set_authorizer() * set_progress_handler() * __call__() Eg. fix the following segfault: c = Connection("test") c.close() c.set_authorizer(func) The patch includes unit tests to test all methods on a closed connection. sqlite3 already raises an error for some operations on a closed socket (eg. connection.commit()), but not on all operations. ---------- components: Extension Modules files: sqlite_closed.patch keywords: patch messages: 97538 nosy: haypo severity: normal status: open title: _sqlite3: Block *all* operations on a closed Connection object type: crash versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15819/sqlite_closed.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7670> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com