Changes between Version 2 and Version 3 of Ticket #17258, comment 21


Ignore:
Timestamp:
Dec 16, 2011, 2:13:54 PM (12 years ago)
Author:
Vinay Sajip

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17258, comment 21

    v2 v3  
    11This 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
     3If you add __hash__ = object.__hash__, then the problem seemingly goes away.
Back to Top