Message96248
Methods create_function, create_aggregate, set_authorizer,
set_progress_handler, create_collation of the _sqlite3.Connection class
doesn't catch PyDict_SetItem/PyDict_DelItem errors. The error will be
catched by next opcode/function call.
The error occurs if the callback argument is not hashable.
Attached patch adds the missing tests, and add unit tests.
There is not unit test for Connection.create_collation() because I don't
know how to test it. The call to PyDict_SetItem() is different, because
the callback is not the dictionary key but the value (so it's not a
problem if the callback is not hashable). |
|
Date |
User |
Action |
Args |
2009-12-11 12:11:19 | vstinner | set | recipients:
+ vstinner |
2009-12-11 12:11:19 | vstinner | set | messageid: <1260533479.81.0.324820101165.issue7478@psf.upfronthosting.co.za> |
2009-12-11 12:11:18 | vstinner | link | issue7478 messages |
2009-12-11 12:11:17 | vstinner | create | |
|