I can reproduce with gmpy2 and sympy=1.0, but goes away if I remove gmpy2 or update to sympy master. This was fixed accidentally in https://github.com/sympy/sympy/pull/11862
Isuru Fernando. -- 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/CA%2B01voOYxczczz1R_qJ79cm9YCQWgnM6P%2B2-uQp9e-nOub3oCw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.