omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. CPunch

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    CPunch

    @CPunch

    0
    Reputation
    734
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    CPunch Unfollow Follow

    Latest posts made by CPunch

    • Script that can’t be stopped

      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
      CPunch
      CPunch