473,378 Members | 1,470 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,378 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 1470
* 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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.