def __get__(self, obj, type=None):
        # Getting the value of the field.
        geom_value = obj.__dict__[self._field.attname] 
        
        if isinstance(geom_value, self._klass): 
            geom = geom_value
        elif (geom_value is None) or (geom_value==''):
            geom = None
        else: 
            # Otherwise, a Geometry object is built using the field's contents,
            # and the model's corresponding attribute is set.
            geom = self._klass(geom_value)
            setattr(obj, self._field.attname, geom) 
        return geom
Initialize instance to invoke the given `callable` with given
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/gis/db/models/proxy.py/GeometryProxy.__get__--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/timer/timer.py/Timer.__init__