Created
July 6, 2016 15:20
-
-
Save OddBloke/bab530fbdda4460cfe427c14e7b61f97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo(object): | |
def __init__(self): | |
self._endpoint = None | |
@property | |
def endpoint(self): | |
if self._endpoint is None: | |
self._endpoint = self._find_endpoint() | |
return self._endpoint | |
def _find_endpoint(self): | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment