473,396 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Exiting from python shell

For years now, I've been exiting the shell by typing 'exit\n',
being chid by the shell, and then typing ^D. I can't
remember a time that I typed the ^D the first time. Call
me an idiot if you must, but since someone took the trouble
to catch the command 'exit' in a special way, would it have
been so awful to just let it be a way to exit when the shell?

Thanks,

Toby

--
Posted via a free Usenet account from http://www.teranews.com

Jul 18 '07 #1
1 1471
* James Stroud wrote (on 7/18/2007 4:27 PM):
Tobiah wrote:
>For years now, I've been exiting the shell by typing 'exit\n',
being chid by the shell, and then typing ^D. I can't
remember a time that I typed the ^D the first time. Call
me an idiot if you must, but since someone took the trouble
to catch the command 'exit' in a special way, would it have
been so awful to just let it be a way to exit when the shell?

Thanks,

Toby

Yes, this would have required a ground-up approach to redesigning the
python language, transmuting it to something like a cross between lisp
and COBOL and would have rendered it impossible to author with C because
of the way C implements pointers--hardcoding in assembly would likely be
required. Beyond that, exiting an interpreter is not known in computer
science and has been shown impossible by Goedel himself in a series of
monographs on the topic. Thus, to exit python via a keyword would
require also reformulating mathematics as we know it. Furthermore, such
a change would propagate itself, via the observer effect, to the
behavior of sub atomic particles via ill-defined quantum-mechanical
affects and would likely result in the reversal of the Second Law of
Thermodynamics, wherein your refrigerator would end up heating its
contents and milk would spontaneously spoil, among other anomalies.

For these reasons, you might propose a "quit" keyword.

James
You know, some answers simply *must* be saved for posterity....

Mark
Jul 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephen Boulet | last post by:
Control-C doesn't get me back to the DOS prompt anymore in python 2.3. Aside from typing "import sys" and "sys.exit()", is there a key combination to quit python? BTW, the "enumerate" function...
4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
20
by: Matthew Thorley | last post by:
My friend sent me an email asking this: > I'm attemtping to decide which scripting language I should master and > was wondering if it's possible to do > these unixy awkish commands in python:...
2
by: Xah Lee | last post by:
Python Doc Problem Example: os.system Xah Lee, 2005-09 today i'm trying to use Python to call shell commands. e.g. in Perl something like output=qx(ls) in Python i quickly located the...
6
by: Ant | last post by:
Hi all, I'm putting together a simple help module for my applications, using html files stored in the application directory somewhere. Basically it sets up a basic web server, and then uses the...
6
by: John (Z R) L | last post by:
Hi all, I am very new to programming, and I chose to study the Python language before C++. I am currently using the Wikibooks "Non-Programmer's Tutorial for Python", and am up to the section "Who...
6
by: Alan Isaac | last post by:
I'm fairly new to Python and I've lately been running a script at the interpreter while working on it. Sometimes I only want to run the first quarter or half etc. What is the "good" way to do...
0
by: Cameron Simpson | last post by:
On 17Aug2008 21:25, John Nagle <nagle@animats.comwrote: Because $HOSTNAME is a bash specific variable, set by bash but NOT EXPORTED! Like $0 and a bunch of other "private" variables, subprocesses...
3
by: mmm | last post by:
I am looking for advice on Python Editors and IDEs I have read other posts and threads on the subject and my two questions at this time are mainly about the IDLE-like F5-run facilities. While I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.