A method for comparing person == person
svn: r14146
This commit is contained in:
parent
ac820cb8df
commit
30c5030ebe
@ -105,6 +105,9 @@ class Person(SourceBase, NoteBase, AttributeBase, MediaBase,
|
||||
# its genderStats. It doesn't get set here, but from
|
||||
# GenderStats.count_person.
|
||||
|
||||
def __eq__(self, other):
|
||||
return isinstance(other, Person) and self.handle == other.handle
|
||||
|
||||
def serialize(self):
|
||||
"""
|
||||
Convert the data held in the Person to a Python tuple that
|
||||
|
Loading…
Reference in New Issue
Block a user