Helper class which collects positional, keyword, * and ** arguments for a Python function call. More...
#include <cast.h>
Public Member Functions | |
const tuple & | args () const & |
tuple | args () && |
object | call (PyObject *ptr) const |
Call a Python function and pass the collected arguments. More... | |
const dict & | kwargs () const & |
dict | kwargs () && |
template<typename... Ts> | |
unpacking_collector (Ts &&...values) | |
Private Member Functions | |
template<typename T > | |
void | process (list &args_list, T &&x) |
void | process (list &args_list, detail::args_proxy ap) |
void | process (list &, arg_v a) |
void | process (list &, detail::kwargs_proxy kp) |
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 |