classclassmethod(object): """ classmethod(function) -> method Convert a function to be a class method. A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom: class C: @classmethod def f(cls, arg1, arg2, ...): ... It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument. Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin. """ def__get__(self, *args, **kwargs):# real signature unknown """ Return an attribute of instance, which is of type owner. """ pass
def__init__(self, function):# real signature unknown; restored from __doc__ pass
@staticmethod # known case of __new__ def__new__(*args, **kwargs):# real signature unknown """ Create and return a new object. See help(type) for accurate signature. """ pass
classstaticmethod(object): """ staticmethod(function) -> method Convert a function to be a static method. A static method does not receive an implicit first argument. To declare a static method, use this idiom: class C: @staticmethod def f(arg1, arg2, ...): ... It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). Both the class and the instance are ignored, and neither is passed implicitly as the first argument to the method. Static methods in Python are similar to those found in Java or C++. For a more advanced concept, see the classmethod builtin. """ def__get__(self, *args, **kwargs):# real signature unknown """ Return an attribute of instance, which is of type owner. """ pass
def__init__(self, function):# real signature unknown; restored from __doc__ pass
@staticmethod # known case of __new__ def__new__(*args, **kwargs):# real signature unknown """ Create and return a new object. See help(type) for accurate signature. """ pass
classproperty(object): """ Property attribute. fget function to be used for getting an attribute value fset function to be used for setting an attribute value fdel function to be used for del'ing an attribute doc docstring Typical use is to define a managed attribute x: class C(object): def getx(self): return self._x def setx(self, value): self._x = value def delx(self): del self._x x = property(getx, setx, delx, "I'm the 'x' property.") Decorators make defining new properties or modifying existing ones easy: class C(object): @property def x(self): "I am the 'x' property." return self._x @x.setter def x(self, value): self._x = value @x.deleter def x(self): del self._x """ defdeleter(self, *args, **kwargs):# real signature unknown """ Descriptor to change the deleter on a property. """ pass
defgetter(self, *args, **kwargs):# real signature unknown """ Descriptor to change the getter on a property. """ pass
defsetter(self, *args, **kwargs):# real signature unknown """ Descriptor to change the setter on a property. """ pass
def__delete__(self, *args, **kwargs):# real signature unknown """ Delete an attribute of instance. """ pass
def__get__(self, *args, **kwargs):# real signature unknown """ Return an attribute of instance, which is of type owner. """ pass
def__init__(self, fget=None, fset=None, fdel=None, doc=None):# known special case of property.__init__ """ Property attribute. fget function to be used for getting an attribute value fset function to be used for setting an attribute value fdel function to be used for del'ing an attribute doc docstring Typical use is to define a managed attribute x: class C(object): def getx(self): return self._x def setx(self, value): self._x = value def delx(self): del self._x x = property(getx, setx, delx, "I'm the 'x' property.") Decorators make defining new properties or modifying existing ones easy: class C(object): @property def x(self): "I am the 'x' property." return self._x @x.setter def x(self, value): self._x = value @x.deleter def x(self): del self._x # (copied from class doc) """ pass
@staticmethod # known case of __new__ def__new__(*args, **kwargs):# real signature unknown """ Create and return a new object. See help(type) for accurate signature. """ pass
def__set__(self, *args, **kwargs):# real signature unknown """ Set an attribute of instance to value. """ pass