示例#1
0
 public static object Call(CodeContext /*!*/ context, TypeGroup /*!*/ self, params object[] args)
 {
     return(PythonCalls.Call(
                context,
                DynamicHelpers.GetPythonTypeFromType(self.GetNonGenericType()),
                args ?? ArrayUtils.EmptyObjects
                ));
 }
示例#2
0
 public static object Call(CodeContext /*!*/ context, TypeGroup /*!*/ self, [ParamDictionary] PythonDictionary kwArgs, params object[] args)
 {
     return(PythonCalls.CallWithKeywordArgs(
                context,
                DynamicHelpers.GetPythonTypeFromType(self.GetNonGenericType()),
                args ?? ArrayUtils.EmptyObjects,
                kwArgs ?? new PythonDictionary()
                ));
 }
示例#3
0
        public static PythonType GetItem(TypeGroup self, PythonTuple tuple)
        {
            if (tuple.__len__() == 0)
            {
                return(DynamicHelpers.GetPythonTypeFromType(self.GetNonGenericType()));
            }

            return(GetItem(self, tuple._data));
        }