This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ¿Bug Python 2.7.4 and version 3.3.1?
Type: behavior Stage:
Components: IDLE, Windows Versions: Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: IDLE - regression with exit() and quit()
View: 17585
Assigned To: Nosy List: Ricardo, kbk, roger.serwy, serhiy.storchaka, terry.reedy
Priority: normal Keywords:

Created on 2013-04-22 17:57 by Ricardo, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg187575 - (view) Author: Ricardo González (Ricardo) Date: 2013-04-22 17:57
Hello,

There seems to be a bug in versions 2.7.4 and 3.3.1 by typing the following error in IDLE (Python GUI) Windows 8 64 bit:

Python 2.7.4 (default, Apr  6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> exit()
>>> modules

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    modules
NameError: name 'modules' is not defined
>>> help()

Welcome to Python 2.7!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/2.7/tutorial/
.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help>
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    help()
  File "C:\Python27\lib\site.py", line 467, in __call__
    return pydoc.help(*args, **kwds)
  File "C:\Python27\lib\pydoc.py", line 1751, in __call__
    self.interact()
  File "C:\Python27\lib\pydoc.py", line 1763, in interact
    request = self.getline('help> ')
  File "C:\Python27\lib\pydoc.py", line 1774, in getline
    return raw_input(prompt)
  File "C:\Python27\lib\idlelib\PyShell.py", line 1347, in readline
    raise ValueError("read from closed file")
ValueError: read from closed file
>>> quit
Use quit() or Ctrl-Z plus Return to exit
>>> quit()
>>>

Pressing Ctrl-Z is not closed and if we write exit() or quit() either, this happens in both 2.7.4 and 3.3.1 versions.

Regards.
msg187577 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-04-22 18:09
Those bugs likely were fixed in issue17585 and issue14735 last week.
msg187601 - (view) Author: Roger Serwy (roger.serwy) * (Python committer) Date: 2013-04-23 01:10
Ricardo, you are correct that 2.7.4 and 3.3.1 have these bugs but they have been fixed, as shown by Serhiy. Unfortunately, these fixes won't be released for a while but they exist as patches and in version control.

I am closing this issue as a duplicate of #17585.
History
Date User Action Args
2022-04-11 14:57:44adminsetgithub: 62017
2013-04-23 01:10:01roger.serwysetstatus: open -> closed
superseder: IDLE - regression with exit() and quit()
resolution: duplicate
messages: + msg187601
2013-04-22 18:09:20serhiy.storchakasetnosy: + terry.reedy, kbk, serhiy.storchaka, roger.serwy

messages: + msg187577
versions: + Python 2.7, Python 3.4
2013-04-22 17:57:22Ricardocreate