In Python2-SageMath we have
sage: frozenset([frozenset(['A', 'B']), frozenset(['B', 'C'])])
frozenset({frozenset({'B', 'C'}), frozenset({'A', 'B'})})
in all my trials, whereas in Python3 we get all possible permutations of
the elements at random.
Even using
sage: from IPython.lib.pretty import pretty
sage: pretty(frozenset([frozenset(['A', 'B']), frozenset(['B', 'C'])]))
displays the set of sets with random order. How to deal with this?
Background: This comes from a doctest in
sage.combinat.finite_state_machine, where this is a label of a state
after some minimization etc.
Best, Daniel
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.