| 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; |