On Mon, Apr 28, 2014 at 06:39:09AM -0700, Matthew Rocklin wrote: > When making a predicate on a sympy class should we always use is_foo as in > is_Real or should we use isfoo as in isinstance? What is the standard > style for denoting that something is a predicate?
Well, here is an argument from statistics: $ grep --exclude-dir='mpmath' -R 'def is_[a-z]' sympy/|wc -l 259 vs $ grep --exclude-dir='mpmath' -R 'def is[a-z]' sympy/ sympy/core/evalf.py:def iszero(mpf, scaled=False): sympy/utilities/lambdify.py: def isiter(l): sympy/ntheory/primetest.py:def isprime(n): sympy/polys/numberfields.py:def isolate(alg, eps=None, fast=False): It seems, there is no isfoo *methods* at all. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/20140428135741.GA29595%40darkstar.order.hcn-strela.ru. For more options, visit https://groups.google.com/d/optout.
