[issue20016] make site.py Quitter call itself on repr

2013-12-18 Thread Derek Wilson
New submission from Derek Wilson: calling exit() or quit() is actually very cumbersome especially as most other commandline tools that have a command interface allow you to exit or quit by typing exit or quit and not by calling a function. if quitter's builtins are only available in the

[issue20016] make site.py Quitter call itself on repr

2013-12-18 Thread Ramchandra Apte
Ramchandra Apte added the comment: -1 that would be weird behavior; typing a function name shouldn't run it. Python on the command line is still Python. -- nosy: +Ramchandra Apte ___ Python tracker rep...@bugs.python.org

[issue20016] make site.py Quitter call itself on repr

2013-12-18 Thread Éric Araujo
Éric Araujo added the comment: Sorry, it is a deliberate choice to not have reprs have side-effects, espercially as important as quitting the interpreter. The repr of quit/exit is used in places such as pydoc help; it would be bad to quit when the user wants to see documentation, for