reverbrain/elliptics — pull request #336 by ijon (2014-01-17 18:33:00+00:00)
Title: Python: fixed None usage as Id in session.exec_()

Check must directly compare PyObject* to Py_None singleton, because other method (checking object equality to python::api::object()) involves user defined comparing/equality operators.
This is the case with elliptics.Id which has __cmp__ method, which cannot accept None as an argument.