Consider sage: G = SymmetricGroup(2) sage: elements = G.list() sage: elements.remove(G("()")) sage: K = SymmetricGroup(2) sage: K.list() [(1,2)]
Notice K lacks the identity permutation. I'd at least expect K to be a "new" undisturbed version of S_2. Is there some overly-aggressive caching here? Should there be some protection against the above? Or am I missing something? Using elements = copy(G.list()) causes K to have all of its elements, but the docstring for list() doesn't say anything about making a copy, or being an "in-place" version, etc. Rob -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org