Last active
August 29, 2015 14:08
-
-
Save jleeothon/19778c9d44aced38901f to your computer and use it in GitHub Desktop.
Fancy exiting Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please use as: