By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,914 Members | 1,100 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,914 IT Pros & Developers. It's quick & easy.

Documentation bug: Python console behaviour changed

P: n/a
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

Jul 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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


Jul 21 '05 #2

P: n/a
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
Jul 21 '05 #3

P: n/a
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
Jul 21 '05 #4

P: n/a


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

Jul 21 '05 #5

P: n/a
"Lucas Raab" <do*****@gmail.com> schrieb im Newsbeitrag
news:4L***************@newsread3.news.atl.earthlin k.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
Jul 21 '05 #6

P: n/a
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.
Jul 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.