# Is this a bug? FiniteSetMaps??

These are two empty maps with two essentially equal parents:

```
f = FiniteSetMaps(set()).from_dict({})
g = FiniteSetMaps(set(),set()).from_dict({})
f == g
False
```

Is this a bug? FiniteSetMaps??

These are two empty maps with two essentially equal parents:

```
f = FiniteSetMaps(set()).from_dict({})
g = FiniteSetMaps(set(),set()).from_dict({})
f == g
False
```

add a comment

0

They have different hashes

```
sage: f._hash_()
115435715
sage: g._hash_()
115435971
```

Also:

```
sage: f.parent()
Maps from {} to itself
sage: g.parent()
Maps from {} to {}
sage: type(f.parent())
<class 'sage.sets.finite_set_maps.FiniteSetEndoMaps_Set_with_category'>
sage: type(g.parent())
<class 'sage.sets.finite_set_maps.FiniteSetMaps_Set_with_category'>
```

Yes, I guess we have to live with this. Technically if the maps are the same with the same codomain and domain, then they should have the same parent, and because the parent is defined when the maps are created I see how this could be a problem to fix since we can't change parents once the object is created, right?

Asked: **
2012-11-26 10:20:43 -0600
**

Seen: **68 times**

Last updated: **Nov 28 '12**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.