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

Function args

include/pybind11/cast.h:2267–2278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2265 }
2266
2267 tuple args() const {
2268 size_t nargs = m_args.size() - 1; // -1 for PY_VECTORCALL_ARGUMENTS_OFFSET (see ctor)
2269 if (m_names) {
2270 nargs -= m_names.size();
2271 }
2272 tuple val(nargs);
2273 for (size_t i = 0; i < nargs; ++i) {
2274 // +1 for PY_VECTORCALL_ARGUMENTS_OFFSET (see ctor)
2275 val[i] = reinterpret_borrow<object>(m_args[i + 1]);
2276 }
2277 return val;
2278 }
2279
2280 dict kwargs() const {
2281 dict val;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected