473,487 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Documentation bug: Python console behaviour changed

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
6 1798
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
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
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


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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1857
by: Ed Young | last post by:
Here is an example of the behavior: ------- code start ----------------------------------- #!/usr/bin/python #bugtest - test of class attribute initiation class Config: a = 1 b = 2 c = 3
8
2434
by: Hannu Kankaanp?? | last post by:
This may be a bug or simply a strange result of undefined behaviour, but this is what I get with Python 2.3.2 on Windows XP: >>> import os >>> os.listdir('') >>> os.listdir(u'')
7
1865
by: Sunny | last post by:
Hi all, According C# Language Specification : 10.11 Static constructors: The static constructor for a class executes at most once in a given application domain. The execution of a static...
14
1716
by: Klaus Löffelmann | last post by:
Hi, does anybody know, why the second contructor isn't called in this example? Are you able to reproduce this bug? Thanks Klaus Public Class Something
112
13720
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them...
0
243
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 401 open ( +3) / 3342 closed ( +8) / 3743 total (+11) Bugs : 896 open ( -8) / 6035 closed (+24) / 6931 total (+16) RFE : 224 open...
7
1659
by: John Brown | last post by:
Can someone confirm whether the following technique is now broken in .NET 2.0 (it worked in 1.1). // Avoid boxing and losing our return value object inoutCancel = false; Control.Invoke(...,...
27
2300
by: Frederick Gotham | last post by:
I thought it might be interesting to share experiences of tracking down a subtle or mysterious bug. I myself haven't much experience with tracking down bugs, but there's one in particular which...
8
1407
by: John Nagle | last post by:
The Python documentation for "str" says "str() : Return a string containing a nicely printable representation of an object." However, there's no mention of the fact that "str" of a Unicode...
0
6967
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...
1
6846
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
7349
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...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.