[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 interactive interpreter this 
seems like it would be perfectly safe. now that we are looking at 3.x going 
forward, perhaps we can reopen this: http://bugs.python.org/issue8220

--
components: Extension Modules
files: quit_from_repr.patch
keywords: patch
messages: 206537
nosy: underrun
priority: normal
severity: normal
status: open
title: make site.py Quitter call itself on repr
versions: Python 3.5
Added file: http://bugs.python.org/file33194/quit_from_repr.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20016
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue20016
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 example.

--
components: +Library (Lib) -Extension Modules
nosy: +eric.araujo
resolution:  - rejected
stage:  - committed/rejected
status: open - closed
type:  - enhancement

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20016
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com