Am 28.04.2014 15:39, schrieb Matthew Rocklin:
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?

Here's a quick scan in my SymPy installation.
It's old-ish (six months) so current numbers may vary.

is with underscore:
$ cat `find -name "*.py"`|grep -c "def is[_]"
264

is without underscore:
$ cat `find -name "*.py"`|grep  "def is[^_]"
22

So I guess the standard is is_ with an underscore.

--
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/535E62EA.9080309%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to