Re: [sage-devel] frozensets in doctests / for display in Python3

2019-04-16 Thread Daniel Krenn
On 16.04.19 16:59, E. Madison Bray wrote: > On Tue, Apr 16, 2019 at 4:43 PM Daniel Krenn wrote: >> 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? > Yes,

Re: [sage-devel] frozensets in doctests / for display in Python3

2019-04-16 Thread E. Madison Bray
On Tue, Apr 16, 2019 at 4:43 PM Daniel Krenn wrote: > > 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 ele

[sage-devel] frozensets in doctests / for display in Python3

2019-04-16 Thread Daniel Krenn
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