Exemple #1
0
        public string Get__module__(CodeContext /*!*/ context)
        {
            if (Targets.Count > 0)
            {
                PythonType declaringType = DynamicHelpers.GetPythonTypeFromType(DeclaringType);

                string res = PythonTypeOps.GetModuleName(context, declaringType.UnderlyingSystemType);
                if (res != "builtins" || DeclaringType == typeof(IronPython.Modules.Builtin))
                {
                    return(res);
                }
            }
            return(null);
        }