Equivalent to ``obj is None`` in Python.
| 163 | bool is(object_api const &other) const { return derived().ptr() == other.derived().ptr(); } |
| 164 | /// Equivalent to ``obj is None`` in Python. |
| 165 | bool is_none() const { return derived().ptr() == Py_None; } |
| 166 | /// Equivalent to obj == other in Python |
| 167 | bool equal(object_api const &other) const { return rich_compare(other, Py_EQ); } |
| 168 | bool not_equal(object_api const &other) const { return rich_compare(other, Py_NE); } |