• CPunch

    Hey so I got pythonista recently and so far I am LOVING it very much! However when working with try, except I found something odd. If you have a loop that runs forever in a try block and try to end the program, before the thread ends it runs the except block. Using this oversight you can make a script that will never end! (or until you reopen pythonista)

    def dont_stop_me_now():
      try:
        while True:
          print('oof')
      except:
        dont_stop_me_now()
        
    dont_stop_me_now()
    

    I found this quite entertaining but thought it is more of a bug than a feature so here it is lol

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!