Can you expand on why? To me the former reads better, and elides the need to specifically import the Relational class:
*>>> x.is_Relational* *True* vs *>>> from sympy.core.relational import Relational* *>>> isinstance(x, Relational)' reads better to me than 'isinstance(x, Relational)* Further, the former is faster: *In [11]: %timeit a.is_Relational* *10000000 loops, best of 3: 76.3 ns per loop* * * *In [12]: %timeit isinstance(a, Relational)* *1000000 loops, best of 3: 289 ns per loop* -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/JCRlfe33S_YJ. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.