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.

Author chrish42
Recipients ajaksu2, akira, akuchling, chrish42, doko
Date 2014-04-14.20:39:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397507977.24.0.479181629462.issue984870@psf.upfronthosting.co.za>
In-reply-to
Content
I get the same traceback. The traceback happens only when the window is shrunk below the size specified in derwin(). It's easy to see this by changing the first and second arguments to the derwin call to something like 2, 2, and then you can resize the window to a much smaller size without getting this exception. (My curses.version is 2.2 also. Running on OSX Mavericks.)

The getmaxyx() function reports the correct size when the window is shrunk. Also note that the upstream bug has been closed, with the comment "Not seen in python 2.7".

So I think we can close this. Maybe we want to document the behavior of derwin() and related functions of raising _curses.error when the dimensions of the terminal are smaller than that of the window, though? (Or maybe raise a better exception?) That should probably be another bug report, though.
History
Date User Action Args
2014-04-14 20:39:37chrish42setrecipients: + chrish42, akuchling, doko, ajaksu2, akira
2014-04-14 20:39:37chrish42setmessageid: <1397507977.24.0.479181629462.issue984870@psf.upfronthosting.co.za>
2014-04-14 20:39:37chrish42linkissue984870 messages
2014-04-14 20:39:36chrish42create