Package pygeodesy :: Module basics :: Class property_RO |
[frames] | no frames]

# Class property_RO

    object --+
             |
      property --+
                 |
                property_RO

Instance Methods
    property attribute
__init__(self, method) New immutable, read-only property_RO to be used as `decorator`. |
Inherited from `property`: `__delete__`, `__get__`, `__getattribute__`, `__new__`, `__set__`, `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

### __init__ (self, method) (Constructor) |
New immutable, read-only property_RO to be used as `decorator`. Arguments: `method` - The callable being decorated as `property.getter`. Returns:
    property attribute
Overrides: object.__init__ Note: Like standard Python `property` without a `property.setter` and with a more descriptive error message when set.