cursesmodule: remove 2-argument form of newwin()?

Andrew Kuchling akuchlin at mems-exchange.org
Thu Jul 12 10:32:54 EDT 2001


In the curses module, newwin() when called with two arguments returns
a pad instead of a window.  This is equivalent to the newpad()
function, and it's a bit confusing.  I'm tempted to change this for
2.2, having the 2-argument newwin() return a window, not a pad, and
set nlines and ncols to zero, making ncurses use the rest of the
screen for the window.  This matches the actually documented
behaviour.

I'm doubtful anyone uses the 2-argument newwin() at all, but wanted to
ask the group -- does anyone rely on newwin(x,y) returning a pad?

This is bug #417212 on SourceForge; you can make comments on that bug,
or here on python-list.

--amk




More information about the Python-list mailing list