[Python-ideas] python3: subtle change to new input()

Steven Bethard steven.bethard at gmail.com
Wed Nov 14 23:05:44 CET 2007


On Nov 14, 2007 2:43 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> 1. Would it be sensibly possible to equalize the behavior?  (Your def of
> 'sensibly'.)
> a. ^D and ^Z both raise EOF on all systems.
> b. Only ^D on all systems
> c. ^D on all systems and ^Z also on Windows.
>
> Would it be a good idea?
>
> For many current Windows users, Python will be the only contact with an
> imitation-DOS console window and the need for EOF input, so strict
> imitation of old, semi-obsolete DOS mode behavior seems not necesarry.

There's already a single way of spelling this on both systems: quit()

$python
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
$

$python
Python 2.5.1 (r251:54863, Nov 12 2007, 09:59:19)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
$

STeVe
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy



More information about the Python-ideas mailing list