[sage-devel] Set reorders elements

2009-11-07 Thread Alex Ghitza
This is a bit disconcerting: sage: Set(['a', 'b', 'c']) {'a', 'c', 'b'} sage: Set(['a', 'b', 'c', 'd']) {'a', 'c', 'b', 'd'} sage: Set(['a', 'b', 'c', 'd', 'e']) {'a', 'c', 'b', 'e', 'd'} Bug? It doesn't seem to happen with lists of numbers. Best, Alex -- Alex Ghitza -- Lecturer in

[sage-devel] Set reorders elements

2009-11-07 Thread Alex Ghitza
On Sun, Nov 08, 2009 at 04:06:01PM +1100, Alex Ghitza wrote: In fact, the reason this is bothering me right now is that I'm writing code for working with free groups on sets, and I end up with something like sage: G.a, b, c = FreeGroup() sage: G Free Group on the Set {a, c, b} sage: b