omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. altoidnerd
    3. Posts

    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 2
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by altoidnerd

    • RE: Sending ctrl+C break signal in the terminal?

      To break execution during runtime, it behaves the same. But there are other cases (due to the syntax of python-language its not unique to pythonista and is shared by ALL shells).

      When in the shell, you enter functions and control sequences line by line - so you commit lines before execution. If you make an error, you need to break from that commitment to an indent-level to get your shell back (during this time, the button isn't available to do this, but that would be a good fix).

      example: this happens to me fairly often

      def do_something(x):
      ..if x not in [elm for elm in os.listdir('.').startswith('.')]:
      ....> # oh shoot. I meant to use os.environ not listdir
      ........> it thinks im still going. now I need to escape
      ....> just mashing buttons now
      ....>(*opovdv
      ......>;powef;l.
      ...>

      To be fair pythonista handles this better than ipython or cpython. cpython's shell is awful, and ipythons is great but has this syndrome really bad when it comes to functions... you'd have to use it to understand ...

      posted in Pythonista
      altoidnerd
      altoidnerd
    • Sending ctrl+C break signal in the terminal?

      Is it possible to send Ctrl + C ( SIGINT ) to break in the shell? That is something I use quite often, in any python shell. There are many use cases.

      posted in Pythonista
      altoidnerd
      altoidnerd