Skip to content

Instantly share code, notes, and snippets.

@jkhulme
Created February 20, 2014 21:29
Show Gist options
  • Save jkhulme/9123600 to your computer and use it in GitHub Desktop.
Save jkhulme/9123600 to your computer and use it in GitHub Desktop.
Method sink, rather than initialising to None
class Sink:
def __init__(self):
pass
def __getattr__(self, name):
def _missing(*args, **kwargs):
pass
return _missing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment