MCPcopy Create free account
hub / github.com/pybind/pybind11 / equal

Function equal

include/pybind11/pytypes.h:167–167  ·  view source on GitHub ↗

Equivalent to obj == other in Python

Source from the content-addressed store, hash-verified

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); }
169 bool operator<(object_api const &other) const { return rich_compare(other, Py_LT); }
170 bool operator<=(object_api const &other) const { return rich_compare(other, Py_LE); }

Callers 1

broadcastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected