mirror of
https://github.com/yweber/lodel2.git
synced 2026-07-01 05:10:49 +02:00
[#45] Changed the __hash__ implementation of the EmComponent class
This commit is contained in:
parent
ed9133016f
commit
c916801c99
1 changed files with 2 additions and 1 deletions
|
|
@ -79,7 +79,8 @@ class EmComponent(object):
|
|||
## @brief Hash function that allows to compare two EmComponent
|
||||
# @return EmComponent+ClassName+uid
|
||||
def __hash__(self):
|
||||
return "EmComponent"+self.__class__.__name__+str(self.uid)
|
||||
return hash(str(self.attr_dump))
|
||||
# return "EmComponent"+self.__class__.__name__+str(self.uid)
|
||||
|
||||
## @brief Test if two EmComponent are "equals"
|
||||
# @return True or False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue