Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'example:': 0.03; 'exception': 0.03; 'initialize': 0.05; 'exception.': 0.07; 'raises': 0.07; 'exception,': 0.09; 'subject:Python3': 0.09; 'ignore': 0.13; 'sat,': 0.15; 'curses': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'char': 0.17; 'module,': 0.17; 'feb': 0.19; 'header:In- Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'problem.': 0.32; 'skip:s 30': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'screen': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'being': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'most': 0.61; 'strange': 0.62; 'behavior': 0.64; 'here': 0.65; '2013': 0.84; 'why?': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=BSREkleLBoKcy1D2OWVYUH42CVThJCyO8s9F3OdBlG8=; b=D9zrUKOEPaMI3aq6VzjLfD2U5hdhyyh5s8nAVs7/HfCZj/zOpi+ihGGiZuDq+ix7LM aZWs0rW5fGL1L9bdSA8V2+IgdhUhy+YyljJ7QRQYookhd2Yf6qI47yUkTUiZPlm22dED Wsk0IyPf3bAycOVfLeHGxuaWyli6H9YVlUGrHaqftEBanYgab/rL8WWFlRdHfTvl7vwt kQHjtMLF2MhpIpk0aJPMRqcKfRsaDs6Bxy9nZrn+r0847kY/r6pnRuh1aoAp6XjsS9cY MiBMdJzpmDPDpr93PzXOeIOpm4+MG/Z62E9ZfaGJCyOL7SEB8ucvUfJnAfhs+vcId1Hm EBJA== MIME-Version: 1.0 X-Received: by 10.220.149.200 with SMTP id u8mr10705103vcv.7.1360409332032; Sat, 09 Feb 2013 03:28:52 -0800 (PST) In-Reply-To: <3adc871c-9a35-42ea-9687-52413d72a918@googlegroups.com> References: <3adc871c-9a35-42ea-9687-52413d72a918@googlegroups.com> Date: Sat, 9 Feb 2013 22:28:51 +1100 Subject: Re: Python3 curses behavior From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360409341 news.xs4all.nl 6902 [2001:888:2000:d::a6]:41526 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38510 On Sat, Feb 9, 2013 at 10:23 PM, Vlasov Vitaly wrote: > Hello. > > I found strange behavior of curses module, that i can't understand. I ini= tialize screen with curses.initscr(), then i create subwin of screen with s= creen.subwin(my_subwin_sizes). After that i fill subwin with my_char in for= -loop. On last char in last line subwin.addch() raises exception. > > This is my problem. Why? How to fix it? > > (If i will ignore exception, then last char will be displayed) > > Here simple example: > http://pastebin.com/SjyMsHZB What exception is being raised? That's kinda the most important part here := ) ChrisA