Changes between Initial Version and Version 1 of Ticket #28999, comment 3


Ignore:
Timestamp:
Jan 8, 2018, 6:03:37 PM (6 years ago)
Author:
Andrew Standley

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28999, comment 3

    initial v1  
    3232            def __hash__(self):
    3333                return hash(cls)  # Class' 'view function' hash is defined by the Class
     34            def __eq__(self, other):
     35                if not hasattr(other, '__hash__'):
     36                    return False
     37                return hash(self) == hash(other)
    3438        view = callable_view()
    3539        view.view_class = cls
Back to Top