Package csb :: Package core :: Class typedproperty
[frames] | no frames]

Class typedproperty

source code

object --+    
         |    
  property --+
             |
            typedproperty

Property decorator for convenient creation of typed, encapsulated fields. The provided function must be a dummy, only its name is used.

Example:

>>> @typedproperty(float)
>>> def b():
>>>     pass
Instance Methods
 
__call__(self, func) source code
value
__get__(self, instance, cls) source code
property attribute

__init__(self, type)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__set__(self, instance, value) source code

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

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

Properties

Inherited from property: fdel, fget, fset

Inherited from object: __class__

Method Details

__get__(self, instance, cls)

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

__init__(self, type)
(Constructor)

source code 

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

Returns:
property attribute

Overrides: object.__init__
(inherited documentation)

__set__(self, instance, value)

source code 
Overrides: property.__set__
(inherited documentation)