def port(self): """ Provides port on-demand with caching """ if not hasattr(self, '_port'): self._port = give_port() return self._port
def port(self): """ Provides port on-demand with caching """ if not hasattr(self, '_port'): self._port = give_port() return self._port