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

Function tp_new_impl

include/pybind11/detail/function_record_pyobject.h:146–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145// Guard against accidents & oversights, in particular when porting to future Python versions.
146inline PyObject *tp_new_impl(PyTypeObject *, PyObject *, PyObject *) {
147 pybind11_fail("UNEXPECTED CALL OF function_record_PyTypeObject_methods::tp_new_impl");
148 // return nullptr; // Unreachable.
149}
150
151inline PyObject *tp_alloc_impl(PyTypeObject *, Py_ssize_t) {
152 pybind11_fail("UNEXPECTED CALL OF function_record_PyTypeObject_methods::tp_alloc_impl");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected