Skip to content

Instantly share code, notes, and snippets.

@OddBloke
Created July 6, 2016 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OddBloke/bab530fbdda4460cfe427c14e7b61f97 to your computer and use it in GitHub Desktop.
Save OddBloke/bab530fbdda4460cfe427c14e7b61f97 to your computer and use it in GitHub Desktop.
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