Done! https://github.com/sympy/sympy/issues/16955 <https://github.com/sympy/sympy/issues/16955>
> Le 3 juin 2019 à 19:39, Aaron Meurer <asmeu...@gmail.com> a écrit : > > There have been bugs in the past where printers evaluate > evaluate=False expressions. It looks like there is another such bug > here. Can you open an issue for this? > > Aaron Meurer > > On Mon, Jun 3, 2019 at 9:54 AM Jean ABOU SAMRA <j...@abou-samra.fr> wrote: >> >> Hi, >> >> Le 2 juin 2019 à 21:40, Oscar Benjamin <oscar.j.benja...@gmail.com> a écrit : >> >> Hi Jean, >> >> >> Thanks for your quick answer. >> >> What version of SymPy are you using? >> >> This seems to work fine on SymPy master and with the most recent version >> (1.4): >> >> >> I'm also using 1.4. >> >> In [1]: repr(Mul(-1, 2, 5, evaluate=False)) >> Out[1]: '-2*5' >> >> >> True, but… >> >>>>> repr(Mul(-2, 5, evaluate=False)) >> '-10' >> >> In fact, all the problem lies here: >> >>>>> # same... >> ... srepr(Mul(-1, 2, 5, evaluate=False)) >> 'Mul(Integer(-1), Integer(2), Integer(5))' >>>>> srepr(Mul(-2, 5, evaluate=False)) >> 'Mul(Integer(-1), Integer(2), Integer(5))' >>>>> >>>>> # but different >> ... repr(Mul(-1, 2, 5, evaluate=False)) >> '-2*5' >>>>> repr(Mul(-2, 5, evaluate=False)) # Hoops! >> '-10' >>>>> >>>>> # even weirder >> ... init_printing() >>>>> Mul(-1, 2, 5, evaluate=False) >> -2⋅5 >>>>> Mul(-2, 5, evaluate=False) # here all is fine! >> -2⋅5 >> >> >> Kind regards, >> Jean Abou Samra >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sympy+unsubscr...@googlegroups.com. >> To post to this group, send email to sympy@googlegroups.com. >> Visit this group at https://groups.google.com/group/sympy. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sympy/45D94875-5286-4A9C-B9B2-7812DF70A0B7%40abou-samra.fr. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sympy+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > Visit this group at https://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/CAKgW%3D6JAVeHVXxx_VfBuPgxSv4RnKBSnV1vDxHMuo%3DsqwYN1NQ%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/EE52536A-A863-4513-AE61-B5B3559D349C%40abou-samra.fr. For more options, visit https://groups.google.com/d/optout.