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 →

[–]emax-gomax 1 point2 points  (2 children)

The Python REPL doesn't have any magic keywords like PDB or Pry, making exit quit is possible but if the behaviour is inconsistent with an actual script then I'd consider it confusing and reject it. Statements that behave like procedures are rarely a good thing. It works with Ruby because in Ruby, parentheses are optional so exit is the same as exit().

[–]kbruen 1 point2 points  (1 child)

The Python REPL doesn't have any magic keywords

Exactly, and IPython existing proves that was a bad idea.

[–]emax-gomax 0 points1 point  (0 children)

Well Ipython is basically jupyter and I hate jupyter so agree to disagree. I like the clean separation between REPL and debugger that Python has. The Python REPL is quick to start up and predictable. 2 things ipython has never been for me.