Skip to content

Instantly share code, notes, and snippets.

@jarvys
Last active August 29, 2015 14:00
Show Gist options
  • Save jarvys/11260228 to your computer and use it in GitHub Desktop.
Save jarvys/11260228 to your computer and use it in GitHub Desktop.
make a module with only one function
import sys
  
def fn():
  pass
  
sys.modules[__name__] = fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment