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

Function repr

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

Source from the content-addressed store, hash-verified

2570}
2571
2572inline str repr(handle h) {
2573 PyObject *str_value = PyObject_Repr(h.ptr());
2574 if (!str_value) {
2575 throw error_already_set();
2576 }
2577 return reinterpret_steal<str>(str_value);
2578}
2579
2580inline iterator iter(handle obj) {
2581 PyObject *result = PyObject_GetIter(obj.ptr());

Callers 15

TEST_SUBMODULEFunction · 0.85
test_overload_resolutionFunction · 0.85
test_unscoped_enumFunction · 0.85
test_implicit_conversionFunction · 0.85
test_sequenceFunction · 0.85
test_pointersFunction · 0.85
TEST_SUBMODULEFunction · 0.85
test_reprFunction · 0.85
PYBIND11_OVERRIDE_PUREFunction · 0.85
initialize_genericMethod · 0.85

Calls 1

ptrMethod · 0.80

Tested by 11

TEST_SUBMODULEFunction · 0.68
test_overload_resolutionFunction · 0.68
test_unscoped_enumFunction · 0.68
test_implicit_conversionFunction · 0.68
test_sequenceFunction · 0.68
test_pointersFunction · 0.68
TEST_SUBMODULEFunction · 0.68
test_reprFunction · 0.68
PYBIND11_OVERRIDE_PUREFunction · 0.68