public PythonProperty getter(object fget) { PythonProperty res = new PythonProperty(); res.__init__(fget, _fset, _fdel, _doc); return(res); }
public PythonProperty deleter(object fdel) { PythonProperty res = new PythonProperty(); res.__init__(_fget, _fset, fdel, _doc); return(res); }
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); }
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); }
public PythonProperty deleter(object fdel) { PythonProperty res = new PythonProperty(); res.__init__(_fget, _fset, fdel, _doc); return res; }
public PythonProperty getter(object fget) { PythonProperty res = new PythonProperty(); res.__init__(fget, _fset, _fdel, _doc); return res; }
public static void Set__doc__(PythonProperty self) { throw PythonOps.TypeError("'property' object is immutable"); }
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; }
public static void Set__doc__(PythonProperty self, object value) { throw PythonOps.TypeError("readonly attribute"); }
public static void Set__doc__(PythonProperty self, object value) { self._doc = value; }