Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 allow keywords for instances ofCallable

closed
nobody
None
5
2003-11-27
2001-09-05
Anonymous
No

Pls add the following overload of the apply method to
class Callable in Objects.hxx, since PyObject_CallObj
just redirects it anyway to the PyEval_CallXXX
functions.

// Call with keywords
Object apply(const Tuple& args, const Dict& kw) const{
return asObject(
PyEval_CallObjectWithKeywords(
ptr(),
args.ptr(),
kw.ptr()
)
);
}

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=28665

    Added suggested code.