FAQ
The documentation of the Python console behaviour is not correct
anymore for Python 2.4.1. At least for the Win2K system I'm working on
'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.

The Python interpreter tells me instead:
quit
'Use Ctrl-Z plus Return to exit.'

Nah, 'Ctrl-Z' is now undo :-)

Side remark: IDLE closes the console either with Ctrl-D or Ctrl-Q. But
IDLEs configure dialog window showing the key combinations is so tight
and nothing is recognizable without scrolling back and forth that it is
discouring to use it at all ;)

IPython closes with 'Ctrl-D'. Thanks to IPython I also determined this
as the correct shutdown keys for Python too.

Kay

Search Discussions

  • Simon Dahlbacka at Jul 19, 2005 at 10:07 am
    My console follows documentation:


    C:\tmp\GspRegTestApp>c:\Python24\python
    ActivePython 2.4.1 Build 245 (ActiveState Corp.) based on
    Python 2.4.1 (#65, Mar 30 2005, 09:33:37) [MSC v.1310 32 bit (Intel)]
    on win32
    Type "help", "copyright", "credits" or "license" for more information.
    ^Z

    C:\tmp\GspRegTestApp>c:\Python24\python
    ActivePython 2.4.1 Build 245 (ActiveState Corp.) based on
    Python 2.4.1 (#65, Mar 30 2005, 09:33:37) [MSC v.1310 32 bit (Intel)]
    on win32
    Type "help", "copyright", "credits" or "license" for more information.
    ^D
    File "<stdin>", line 1
    ?
    ^
    SyntaxError: invalid syntax
    >>>
  • Peter Hansen at Jul 19, 2005 at 11:42 am

    Kay Schluehr wrote:
    The documentation of the Python console behaviour is not correct
    anymore for Python 2.4.1. At least for the Win2K system I'm working on
    'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.

    The Python interpreter tells me instead:

    quit
    'Use Ctrl-Z plus Return to exit.'

    Nah, 'Ctrl-Z' is now undo :-)
    Are you really using the console, started with the "Command Prompt" icon
    from the Start Menu (or some equivalent)? And are you sure you haven't
    installed something else that magically changed the behaviour of Ctrl-Z?

    (I get the documented behaviour with Python 2.4.1, under Win XP.)

    -Peter
  • Lucas Raab at Jul 19, 2005 at 12:55 pm

    Peter Hansen wrote:
    Kay Schluehr wrote:
    The documentation of the Python console behaviour is not correct
    anymore for Python 2.4.1. At least for the Win2K system I'm working on
    'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.

    The Python interpreter tells me instead:

    quit

    'Use Ctrl-Z plus Return to exit.'

    Nah, 'Ctrl-Z' is now undo :-)

    Are you really using the console, started with the "Command Prompt" icon
    from the Start Menu (or some equivalent)? And are you sure you haven't
    installed something else that magically changed the behaviour of Ctrl-Z?

    (I get the documented behaviour with Python 2.4.1, under Win XP.)

    -Peter
    I'm getting the same behavior as Kay.

    --
    --------------------------
    Lucas Raab
    lvraab"@"earthlink.net
    dotpyFE"@"gmail.com
    AIM: Phoenix11890
    MSN: dotpyfe "@" gmail.com
    IRC: lvraab
    ICQ: 324767918
    Yahoo: Phoenix11890
  • Claudio Grondi at Jul 19, 2005 at 7:41 pm
    "Lucas Raab" <dotpyFE at gmail.com> schrieb im Newsbeitrag
    news:4L6De.1182$6f.169 at newsread3.news.atl.earthlink.net...
    Peter Hansen wrote:
    Kay Schluehr wrote:
    The documentation of the Python console behaviour is not correct
    anymore for Python 2.4.1. At least for the Win2K system I'm working on
    'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.

    The Python interpreter tells me instead:

    quit

    'Use Ctrl-Z plus Return to exit.'

    Nah, 'Ctrl-Z' is now undo :-)

    Are you really using the console, started with the "Command Prompt" icon
    from the Start Menu (or some equivalent)? And are you sure you haven't
    installed something else that magically changed the behaviour of Ctrl-Z?

    (I get the documented behaviour with Python 2.4.1, under Win XP.)

    -Peter
    I'm getting the same behavior as Kay.

    --
    --------------------------
    Lucas Raab
    I'm getting the same behaviour, too.
    What is non-standard is, that I am using english
    international keyboard on German version of
    Windows 2000 Professional 5.0.2195 SP 4,
    Build 2195.

    Claudio
  • Kay Schluehr at Jul 19, 2005 at 1:10 pm

    Peter Hansen schrieb:
    Kay Schluehr wrote:
    The documentation of the Python console behaviour is not correct
    anymore for Python 2.4.1. At least for the Win2K system I'm working on
    'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.

    The Python interpreter tells me instead:

    quit
    'Use Ctrl-Z plus Return to exit.'

    Nah, 'Ctrl-Z' is now undo :-)
    Are you really using the console, started with the "Command Prompt" icon
    from the Start Menu (or some equivalent)?
    And are you sure you haven't
    installed something else that magically changed the behaviour of Ctrl-Z?

    (I get the documented behaviour with Python 2.4.1, under Win XP.)

    -Peter
    Well, Peter, I indeed changed the system magically but yet it was not
    Windows, but Python! In my description I told You that I installed
    IPython and IPython requires the readline package. If I rename the
    readline package ( e.g. _readline ) in the site-packages directory the
    console behaves as expected. Otherwise it shows the termination
    behaviour of IPython namely it shuts down with Ctrl-D.

    It's really sucking...

    Kay
  • John Machin at Jul 19, 2005 at 10:50 pm

    Kay Schluehr wrote:
    Peter Hansen schrieb:
    Kay Schluehr wrote:
    The documentation of the Python console behaviour is not correct
    anymore for Python 2.4.1. At least for the Win2K system I'm working on
    'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.

    The Python interpreter tells me instead:


    quit
    'Use Ctrl-Z plus Return to exit.'

    Nah, 'Ctrl-Z' is now undo :-)
    Are you really using the console, started with the "Command Prompt" icon
    from the Start Menu (or some equivalent)?
    And are you sure you haven't
    installed something else that magically changed the behaviour of Ctrl-Z?

    (I get the documented behaviour with Python 2.4.1, under Win XP.)

    -Peter

    Well, Peter, I indeed changed the system magically but yet it was not
    Windows, but Python! In my description I told You that I installed
    IPython and IPython requires the readline package. If I rename the
    readline package ( e.g. _readline ) in the site-packages directory the
    console behaves as expected. Otherwise it shows the termination
    behaviour of IPython namely it shuts down with Ctrl-D.

    It's really sucking...

    Kay
    It's readline that sucks. Python's behaviour has *NOT* changed.
  • Tim Golden at Jul 19, 2005 at 1:05 pm
    [Lucas Raab]
    Peter Hansen wrote:
    Kay Schluehr wrote:
    The documentation of the Python console behaviour is not correct
    anymore for Python 2.4.1. At least for the Win2K system
    I'm working on
    'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.

    The Python interpreter tells me instead:

    quit

    'Use Ctrl-Z plus Return to exit.'

    Nah, 'Ctrl-Z' is now undo :-)

    Are you really using the console, started with the "Command
    Prompt" icon
    from the Start Menu (or some equivalent)? And are you sure
    you haven't
    installed something else that magically changed the
    behaviour of Ctrl-Z?
    (I get the documented behaviour with Python 2.4.1, under Win XP.)

    -Peter
    I'm getting the same behavior as Kay.
    Usually means you have a readline package installed:

    I know that this one gives the effect described:

    http://sourceforge.net/projects/uncpythontools/

    Don't know about this one:

    http://newcenturycomputers.net/projects/readline.html

    TJG

    ________________________________________________________________________
    This e-mail has been scanned for all viruses by Star. The
    service is powered by MessageLabs. For more information on a proactive
    anti-virus service working around the clock, around the globe, visit:
    http://www.star.net.uk
    ________________________________________________________________________
  • Rocco Moretti at Jul 19, 2005 at 1:40 pm

    Tim Golden wrote:

    Usually means you have a readline package installed:
    Should the readline package be twiddled to change the "quit" string in
    builtins to document the correct behavior?
  • Claudio Grondi at Jul 20, 2005 at 10:13 am

    'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.
    Usually means you have a readline package installed.
    Right. Readline uninstalled, Ctrl-Z works again.

    By the way:
    After trying to take over readline support from Gary Bishop,
    I have inbetween given up trying to fix readline behaviour on
    international keyboards in Windows (mainly because the
    Python 2.4 IDLE works for me best, so I don't need IPython
    anymore).
    I haven't digged very deep into it, but I mean, that the whole
    code must be probably more or less entirely rewritten by
    someone with experience in internationalization matters on
    Windows (various keyboards and localized Windows
    versions) and readline behaviour on *nix systems.
    Up to now, there is noone known to me willing to support
    the readline package - any volunteers?
    Michele Simionato and me can then test the outcome on
    German and Italian Windows systems and keyboards.

    Claudio

    "Tim Golden" <tim.golden at viacom-outdoor.co.uk> schrieb im Newsbeitrag
    news:mailman.1902.1121778341.10512.python-list at python.org...
    [Lucas Raab]
    Peter Hansen wrote:
    Kay Schluehr wrote:
    The documentation of the Python console behaviour is not correct
    anymore for Python 2.4.1. At least for the Win2K system
    I'm working on
    'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc.

    The Python interpreter tells me instead:

    quit

    'Use Ctrl-Z plus Return to exit.'

    Nah, 'Ctrl-Z' is now undo :-)

    Are you really using the console, started with the "Command
    Prompt" icon
    from the Start Menu (or some equivalent)? And are you sure
    you haven't
    installed something else that magically changed the
    behaviour of Ctrl-Z?
    (I get the documented behaviour with Python 2.4.1, under Win XP.)

    -Peter
    I'm getting the same behavior as Kay.
    Usually means you have a readline package installed:

    I know that this one gives the effect described:

    http://sourceforge.net/projects/uncpythontools/

    Don't know about this one:

    http://newcenturycomputers.net/projects/readline.html

    TJG

    ________________________________________________________________________
    This e-mail has been scanned for all viruses by Star. The
    service is powered by MessageLabs. For more information on a proactive
    anti-virus service working around the clock, around the globe, visit:
    http://www.star.net.uk
    ________________________________________________________________________

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJul 19, '05 at 10:00a
activeJul 20, '05 at 10:13a
posts10
users8
websitepython.org

People

Translate

site design / logo © 2022 Grokbase