Facundo Batista [EMAIL PROTECTED] added the comment:
Commited in r64746. Thank you!!
--
resolution: - accepted
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3239
___
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
import curses.ascii as curses_ascii
If you like curses_ascii you would probably like curses.ascii :) so here
is the patch. I tested it with module built-in testing facility (if
__name__ == '__main__') but didn't run other tests.
Patch
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
Sorry, I didn't not distinguish between curses module ascii and built-in
function ascii.
import curses.ascii as ascii works. Is this a good fix?
___
Python tracker [EMAIL PROTECTED]
Facundo Batista [EMAIL PROTECTED] added the comment:
Ah, I now understand what you mean.
The best, IMO, to avoid the confusion in the import and in the usage, is
to do:
import curses.ascii as curses_ascii
Do you care to send a patch? Thank you!
--
assignee: - facundobatista
New submission from Georgij Kondratjev [EMAIL PROTECTED]:
Line 'import curses, ascii' should be replaced with 'import curses'
--
components: Library (Lib)
messages: 68969
nosy: orivej
severity: normal
status: open
title: curses/textpad.py incorrectly and redundantly imports ascii
Facundo Batista [EMAIL PROTECTED] added the comment:
The ascii module is used all around the file... if you don't import it,
how would you use that functionality?
--
nosy: +facundobatista
resolution: - invalid
status: open - closed
___
Python