On Sat, 4 Jul 2020 at 16:05, Volker Weißmann <volker.weissmann...@gmail.com> wrote: > > using sympy.S.Zero does silence the warning, but isinstance(somevar, > sympy.S.Zero) does not work, because sympy.S.Zero is not the class but > an object. How do I get the class Zero?
You can do `type(S.Zero)` to get the class. Normally though you can test for an instance using `is`: x is S.Zero Because Zero is a Singleton class it only has one instance. Oscar -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxTXj%3DiKi4DJpHCqOddEuNP_i_TTmKeC%2BoAgG1ajkot9rg%40mail.gmail.com.