sympy/sympy — pull request #1882 by srjoglekar246 (2013-03-11 06:12:52+00:00)
Title: logic classes check for Boolean args

And, Or and Not check for Boolean arguments (except 1 and 0)
So something like And(3, x) raises TypeError('Only Boolean arguments supported')