Re: [sage-devel] Re: sorting output dicts in doctests

2021-02-04 Thread 'Reimundo Heluani' via sage-devel
In addition to that I've been using the idiom MyOutput == {this : dict} True And that works for tests and renders well on documents R On February 4, 2021 8:34:36 PM GMT-03:00, 'Travis Scrimshaw' via sage-devel wrote: >Hi John, >IIRC, a dict has its keys automatically sorted in the output.

[sage-devel] Re: sorting output dicts in doctests

2021-02-04 Thread 'Travis Scrimshaw' via sage-devel
Hi John, IIRC, a dict has its keys automatically sorted in the output. However, if the dict is inside of another object, then no sorting is done. So if it is a simple dict with a total ordering on the keys, then you can simply put the output. You can also run sorted() on the items if they

Re: [sage-devel] sage -b is broken

2021-02-04 Thread John H Palmieri
Good, thank you for pointing that ticket out. On Wednesday, February 3, 2021 at 9:43:46 AM UTC-8 dmo...@deductivepress.ca wrote: > I believe this was fixed by gh-kliem in trac #31263. > > On Wednesday, February 3, 2021 at 10:08:45 AM UTC-7 dim...@gmail.com > wrote: > >> finally :-) (not sure

[sage-devel] sorting output dicts in doctests

2021-02-04 Thread John Cremona
Can someone remind me the preferred way to get doctests to pass when the output -- which we do want to include in the docstring -- includes a dict whose keys come out in random order? John -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To

Re: [sage-devel] Re: [GSoC Mentors Announce] Now Accepting GSoC 2021 Mentoring Organization Applications until Feb 19

2021-02-04 Thread Dima Pasechnik
On Thu, Feb 4, 2021 at 3:32 AM 'Travis Scrimshaw' via sage-devel wrote: > > I am happy to mentor, but I am not sure I could take on being an admin this > year (next year I could though). admin is much less work than mentoring, I think. > > Best, > Travis > > > On Tuesday, February 2, 2021 at

Re: [sage-devel] Re: Problems with 9.3.beta6 + OS X Big Sur

2021-02-04 Thread Dima Pasechnik
Probably https://bugs.python.org/issue19733 is still relevant? Note messages test_image (tkinter.test.test_ttk.test_widgets.ButtonTest) ... skipped 'crashes with Cocoa Tk (issue19733)' one gets by running python3 runtktests.py Even though 19733 was closed, it's not clear whether they tested on