Jump to

v11-l1-property

What does the property descriptor does in the following code ?

class MyInt:

    def __init__(self, val):
        self._val = val

    @property
    def val(self):
        return self._val

???