Christian and Nicolas,

Is the following a decent way to determine whether "element" is an element
of a Weyl group of a given Cartan type?

hasattr(element, "domain") and hasattr(element.domain(), "cartan_type")
and element.domain().cartan_type() == cartan_type

E.g. is this likely to change or are there subclasses of WeylGroups
that don't have the domain attribute?

--Mark


-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to