Title: [Python] crash.py Author: waterapple Pastebin link: http://pastebin.com/wf03A3MU First Edit: Friday 24th of May 2013 07:40:36 AM CDT Last Edit: Friday 24th of May 2013 07:40:36 AM CDT #------------------------------------------------------------------------------- # Name:        module1 # Purpose: # # Author:      new # # Created:     24/05/2013 # Copyright:   (c) new 2013 # Licence:     #------------------------------------------------------------------------------- #!/usr/bin/env python import random   def crash_randomly(crash_probability=0.5):     """Crash the script randomly with a probability of crash_probablility."""     if random.random() > crash_probability:         stack_overflow_recursion()   def stack_overflow_recursion():     stack_overflow_recursion()     def main():     print "Let's play russian roulette!"     crash_randomly()   if __name__ == '__main__':     main()