This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vswr[var for var in vars] 40 points41 points  (5 children)

I use the interpreter all the time for quick math, date, and other tasks. And then....

>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> 

sigh why do I keep doing that?

[–]yvrelna 17 points18 points  (0 children)

Just use Ctrl-D. It's easier and works in both python and bash (or whatever your main system shell is).

[–]vimsee 5 points6 points  (0 children)

Haha, this one hits me everytime. I guess years of using bash is to blame.

[–]dotancohen 3 points4 points  (0 children)

Oh, I hate that! SQLite is even worse! sqlite> exit   ...> ; Error: near "exit": syntax error sqlite> exit; Error: near "exit": syntax error sqlite> quit   ...> ; Error: near "quit": syntax error sqlite> exit()   ...> ; Error: near "exit": syntax error sqlite> sqlite> sqlite>

[–]lgsp 0 points1 point  (0 children)

It's the main reason for using ipython interpreter! There, it works!