Shreyan Avigyan <shreyan.avig...@gmail.com> added the comment:

The curses module is not supported on all platforms is very clear. But 
beginners may seem to think that their python was not installed properly and 
then they would go around looking for answer. To make it clear I was thinking 
of how about changing just the message and if required then the type (maybe 
CursesNotFoundError exception class derived from ModuleNotFoundError class) so 
that the error message became a little bit informational. The message could be 
like "_curses library not installed. Install a supported curses library to use 
the curses module" or something like that? 

The exception right now looks like this :-

ModuleNotFoundError: No module named '_curses'

What about something like this :-

CursesNotFoundError: "_curses library not installed. Install a supported curses 
library to use the curses module."

N.B.: The curses library still can be used on Windows by using the UniCurses 
library or Christoph Gohlke's unofficial curses or some other third party 
library.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43728>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to