Commit 385a628b authored by Kevin Modzelewski's avatar Kevin Modzelewski

Add param names to type.__call__

This is not quite right since type.__call__ isn't even a proper function in
CPython.  But our handling of it is complicated enough that I think it's
worth trying this workaround for now.
parent 2b22b45e
......@@ -4386,7 +4386,8 @@ void setupRuntime() {
// but unfortunately that will set tp_setattro to slot_tp_setattro on object_cls and all already-made subclasses!
// Punting on that until needed; hopefully by then we will have better Pyston slots support.
auto typeCallObj = BoxedCode::create((void*)typeCall, UNKNOWN, 1, true, true, "type.__call__");
auto typeCallObj = BoxedCode::create((void*)typeCall, UNKNOWN, 1, true, true, "type.__call__", "",
ParamNames({ "self" }, "args", "kw"));
typeCallObj->internal_callable.capi_val = &typeCallInternal<CAPI>;
typeCallObj->internal_callable.cxx_val = &typeCallInternal<CXX>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment