Skip to content

Instantly share code, notes, and snippets.

@dstufft
Created March 13, 2014 00:54
Show Gist options
  • Select an option

  • Save dstufft/9519897 to your computer and use it in GitHub Desktop.

Select an option

Save dstufft/9519897 to your computer and use it in GitHub Desktop.
def foo(thing):
if thing is None:
self._do_thing_none()
else:
self._do_thing(thing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment