Theano/Theano — pull request #799 by dwf (2012-07-30 20:59:16+00:00)
Title: Check 'None' with 'is' or 'is not'

Speeds up (ever so slightly) these checks (prevents calling a potentially complicated `__eq__` which is unnecessary since `None` is a singleton). This is the preferred way of checking against `None`.