Changes between Version 2 and Version 3 of Ticket #17258, comment 21
- Timestamp:
- Dec 16, 2011, 2:13:54 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17258, comment 21
v2 v3 1 1 This change leads to a failure under Python 3.x because the SQLite `DatabaseWrapper` is no longer hashable. I noticed that the `BaseDatabaseWrapper` defines `__eq__` but not `__hash__` - does this not prevent its instances from being keys in dictionaries / members of sets? 2 3 If you add __hash__ = object.__hash__, then the problem seemingly goes away.