Helper class which collects positional, keyword, * and ** arguments for a Python function call. More...
#include <cast.h>
Public Member Functions | |
tuple | args () && |
const tuple & | args () const & |
object | call (PyObject *ptr) const |
Call a Python function and pass the collected arguments. More... | |
dict | kwargs () && |
const dict & | kwargs () const & |
template<typename... Ts> | |
unpacking_collector (Ts &&...values) | |
Private Member Functions | |
void | process (list &, arg_v a) |
void | process (list &, detail::kwargs_proxy kp) |
void | process (list &args_list, detail::args_proxy ap) |
template<typename T > | |
void | process (list &args_list, T &&x) |
Static Private Member Functions | |
static void | multiple_values_error () |
static void | multiple_values_error (const std::string &name) |
static void | nameless_argument_error () |
static void | nameless_argument_error (const std::string &type) |
Private Attributes | |
tuple | m_args |
dict | m_kwargs |
Helper class which collects positional, keyword, * and ** arguments for a Python function call.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |