That's the whole reason why it works. True and False can be replaced for 1
and 0 anywhere. True + 4, a[True], etc. They all work.

Aaron Meurer

On Oct 27, 2012, at 3:24 AM, smichr <smi...@gmail.com> wrote:

I knew that True == 1 is True and True is 1 is False but I did not expect
that isinstance(True, int) to be True!

caveat emptor-ily,
 Chris

-- 
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/-/HD1LsNnUVGkJ.
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.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
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.

Reply via email to