And to have this behavior, you simply need to implement the methods _ascii_art_ and _unicode_art_ respectively. For a simple _ascii_art_, see combinat/shuffle.py. Maybe combinat/plane_partition.py is another decent example, but there are a bunch of examples in the combinat folder.
Best, Travis On Thursday, February 28, 2019 at 3:46:21 AM UTC+10, vdelecroix wrote: > > ascii_art and unicode_art are distinct functions. > > Le 27/02/2019 à 16:02, Juan Nicolas Pardo Martin a écrit : > > I was thinking about that too, however you only do so in environments > where is supported or make a parameter to ascii_art allow Unicode or an > entirely new method > > > > From: Volker Braun > > Sent: Wednesday, 27 February 2019 00:39 > > To: sage-devel > > Subject: [sage-devel] Re: Proposal: Add ascii_art representation to > factor > > > > Unicode has superscripts btw, would be neat to make use of that: > > x⁴⁵⁶⁷⁸⁹ > > > > 16 = 2⁴ > > > -- 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 sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.