Skip to content

Instantly share code, notes, and snippets.

@jleeothon
Last active August 29, 2015 14:08
Show Gist options
  • Save jleeothon/19778c9d44aced38901f to your computer and use it in GitHub Desktop.
Save jleeothon/19778c9d44aced38901f to your computer and use it in GitHub Desktop.
Fancy exiting Python
farewell = lambda: exit.__call__("Fare well, good lover.")
# On Python 2
bravequit2 = lambda: type(exit)("The adventurously brave quitter")("I'll miss you. Please open the console when you be free again.")
# On Python 3
bravequit3 = lambda: type(exit)("The adventurously brave quitter", "")("I'll miss you. Please open the console when you be free again.")
@jleeothon
Copy link
Author

Please use as:

import goodbyes
# do kinky stuff here
goodbyes.farewell()  # Fare well, good lover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment