Package winappdbg :: Module util :: Class classproperty
[hide private]
[frames] | no frames]

Class classproperty

source code


Class property method.

Only works for getting properties, if you set them the symbol gets overwritten in the class namespace.

Inspired on: http://stackoverflow.com/a/7864317/426293

Instance Methods [hide private]
property attribute

__init__(self, fget=None, fset=None, fdel=None, doc='')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
value
__get__(self, cls, owner) source code

Inherited from property: __delete__, __getattribute__, __new__, __set__, deleter, getter, setter

Inherited from object: __delattr__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from property: fdel, fget, fset

Inherited from object: __class__

Method Details [hide private]

__init__(self, fget=None, fset=None, fdel=None, doc='')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns:
property attribute

Overrides: object.__init__
(inherited documentation)

__get__(self, cls, owner)

source code 
Returns: value
Overrides: property.__get__
(inherited documentation)