[ python-Bugs-989333 ] Empty curses module is loaded in win32

SourceForge.net noreply at sourceforge.net
Mon Jan 31 01:25:15 CET 2005


Bugs item #989333, was opened at 2004-07-12 23:00
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=989333&group_id=5470

Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Miki Tebeka (tebeka)
Assigned to: Nobody/Anonymous (nobody)
Summary: Empty curses module is loaded in win32

Initial Comment:
When doing "import curses" an empty curses module is
loaded.
I think that since curses is not supported in win32
that an ImportError should be raised (like in 2.3)

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2005-01-31 13:25

Message:
Logged In: YES 
user_id=552329

I do not get this behaviour (I get the expected ImportError):

C:\>c:\python22\python
Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import curses
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named curses

C:\>c:\python23\python
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import curses
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named curses

C:\>c:\python24\python
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import curses
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "c:\python24\lib\curses\__init__.py", line 15, in ?
    from _curses import *
ImportError: No module named _curses

What version of Python is this with?  Do you possibly have a
curses.pyc that shouldn't be there?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=989333&group_id=5470


More information about the Python-bugs-list mailing list