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

Function handle

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

The default constructor creates a handle with a ``nullptr``-valued pointer

Source from the content-addressed store, hash-verified

245public:
246 /// The default constructor creates a handle with a ``nullptr``-valued pointer
247 handle() = default;
248
249 /// Enable implicit conversion from ``PyObject *`` and ``nullptr``.
250 /// Not using ``handle(PyObject *ptr)`` to avoid implicit conversion from ``0``.

Callers 15

castMethod · 0.70
cast_implMethod · 0.70
pyobject_casterMethod · 0.70
castFunction · 0.70
unpacking_collectorFunction · 0.70
dispatcherMethod · 0.70
enum_nameFunction · 0.70
initFunction · 0.70
keep_alive_implFunction · 0.70
make_iterator_implFunction · 0.70
arrayMethod · 0.70

Calls

no outgoing calls

Tested by 6

TEST_SUBMODULEFunction · 0.40
TEST_SUBMODULEFunction · 0.40
from_ncnstFunction · 0.40
from_constFunction · 0.40
TEST_SUBMODULEFunction · 0.40