Helloooo everybody !

Here is the problem I met today:

sage: F = FiniteEnumeratedSet(("a","b","c")); F
{'a', 'b', 'c'}
sage: isinstance(F,Parent)
True
sage: F[0]
'a'
sage: F[0].parent()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-15-142f29211c68> in <module>()
----> 1 F[Integer(0)].parent()

AttributeError: 'str' object has no attribute 'parent'

Soooooooo sometimes you write code that applies to parents, and sometimes
the elements know what their parents are, sometimes they don't....

1) Is that normal ?
2) If not, what do we do against it ?

Have fun !

Nathann

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to