              return self._cs.getOrdinate(2, 0)
          else:
              return None
  
      def set_z(self, value):
          "Sets the Z component of the Point."
          if self.hasz:
              self._cs.setOrdinate(2, 0, value)
          else:
              raise GEOSException('Cannot set Z on 2D Point.')
 
</s> remove         if self.hasz:
            self._cs.setOrdinate(2, 0, value)
        else:
 </s> add         if not self.hasz: </s> remove         if self.hasz:
            return self._cs.getOrdinate(2, 0)
        else:
            return None
 </s> add         return self._cs.getOrdinate(2, 0) if self.hasz else None </s> remove     def get_z(self):
 </s> add     @property
    def z(self): </s> remove     def get_y(self):
 </s> add     @property
    def y(self):
    @z.setter
    def z(self, value):
              return self._cs.getOrdinate(2, 0)
          else:
              return None
  
    @z.setter
    def z(self, value):
          "Sets the Z component of the Point."
          if self.hasz:
              self._cs.setOrdinate(2, 0, value)
          else:
              raise GEOSException('Cannot set Z on 2D Point.')
keep keep keep keep replace keep keep keep keep keep
 Refs #25665 -- Deprecated getters/setters of Point coordinate properties. 
django/contrib/gis/geos/point.py