Inheritance: IronPython.Runtime.Types.PythonTypeSlot
Example #1
0
        public PythonProperty getter(object fget)
        {
            PythonProperty res = new PythonProperty();

            res.__init__(fget, _fset, _fdel, _doc);
            return(res);
        }
Example #2
0
        public PythonProperty deleter(object fdel)
        {
            PythonProperty res = new PythonProperty();

            res.__init__(_fget, _fset, fdel, _doc);
            return(res);
        }
Example #3
0
 public static object Get__doc__(CodeContext context, PythonProperty self)
 {
     if (self._doc is null && PythonOps.TryGetBoundAttr(self._fget, "__doc__", out var doc))
     {
         return(doc);
     }
     return(self._doc);
 }
Example #4
0
 public static object Get__doc__(CodeContext context, PythonProperty self)
 {
     if (self._doc == null && PythonOps.HasAttr(context, self._fget, "__doc__"))
     {
         return(PythonOps.GetBoundAttr(context, self._fget, "__doc__"));
     }
     else if (self._doc == null)
     {
         System.Console.WriteLine("No attribute __doc__");
     }
     return(self._doc);
 }
Example #5
0
 public PythonProperty deleter(object fdel) {
     PythonProperty res = new PythonProperty();
     res.__init__(_fget, _fset, fdel, _doc);
     return res;
 }
Example #6
0
 public PythonProperty getter(object fget) {
     PythonProperty res = new PythonProperty();
     res.__init__(fget, _fset, _fdel, _doc);
     return res;
 }
Example #7
0
 public static void Set__doc__(PythonProperty self) {
     throw PythonOps.TypeError("'property' object is immutable");
 }
Example #8
0
 public static object Get__doc__(CodeContext context, PythonProperty self) {
     if (self._doc == null && PythonOps.HasAttr(context, self._fget, (SymbolId)"__doc__")) {
         return PythonOps.GetBoundAttr(context, self._fget, (SymbolId)"__doc__");
     } else if (self._doc == null) {
         System.Console.WriteLine("No attribute __doc__");
     }
     return self._doc;
 }
Example #9
0
 public static void Set__doc__(PythonProperty self, object value)
 {
     throw PythonOps.TypeError("readonly attribute");
 }
Example #10
0
 public static void Set__doc__(PythonProperty self, object value) {
     throw PythonOps.TypeError("readonly attribute");
 }
Example #11
0
 public static void Set__doc__(PythonProperty self, object value)
 {
     self._doc = value;
 }