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

Function dict_getitem

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

Source from the content-addressed store, hash-verified

989}
990
991inline PyObject *dict_getitem(PyObject *v, PyObject *key) {
992 PyObject *rv = PyDict_GetItemWithError(v, key);
993 if (rv == nullptr && PyErr_Occurred()) {
994 throw error_already_set();
995 }
996 return rv;
997}
998
999// PyDict_GetItemStringRef was added in Python 3.13.0a1.
1000// See also: https://github.com/python/pythoncapi-compat/blob/main/pythoncapi_compat.h

Callers 1

get_type_overrideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected