Esempio n. 1
0
            public string __repr__(CodeContext context)
            {
                if (_comInterfaceIndex != -1)
                {
                    return(string.Format("<COM method offset {0}: {1} at {2}>", _comInterfaceIndex, DynamicHelpers.GetPythonType(this).Name, _id));
                }

                return(ObjectOps.__repr__(this));
            }
Esempio n. 2
0
            public string __repr__(CodeContext context)
            {
                if (DynamicHelpers.GetPythonType(this).BaseTypes[0] == _SimpleCData)
                {
                    // direct subtypes have a custom repr
                    return(String.Format("{0}({1})", DynamicHelpers.GetPythonType(this).Name, GetDataRepr(context)));
                }

                return(ObjectOps.__repr__(this));
            }