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.
Commit numbers: r78688 (trunk), r78698 (py3k), r78699 (2.6), r78700 (3.1). 2.6 branch is froze because 2.6.5RC1 was released and 2.6.5 final is planned for next week. Ask barry if you should revert your commit or not r78699.