Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.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.001 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; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'ignore': 0.13; 'sat,': 0.15; '<--': 0.16; 'curses': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'char': 0.17; 'module,': 0.17; 'feb': 0.19; 'skip:\xd1 10': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'chris': 0.28; 'returned': 0.30; 'problem.': 0.32; 'skip:s 30': 0.33; 'skip:\xd0 10': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'screen': 0.34; 'pm,': 0.35; 'being': 0.37; 'subject:: ': 0.38; 'most': 0.61; 'strange': 0.62; 'behavior': 0.64; 'here': 0.65; '8bit%:100': 0.70; '2013': 0.84; 'why?': 0.84 X-Received: by 10.49.48.41 with SMTP id i9mr695033qen.36.1360413502493; Sat, 09 Feb 2013 04:38:22 -0800 (PST) Newsgroups: comp.lang.python Date: Sat, 9 Feb 2013 04:38:22 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.143.44.204; posting-account=HJeeUwoAAACqQZf2_3yuey8U4o2rTRn3 References: <3adc871c-9a35-42ea-9687-52413d72a918@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.143.44.204 MIME-Version: 1.0 Subject: Re: Python3 curses behavior From: Vlasov Vitaly To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360413504 news.xs4all.nl 6867 [2001:888:2000:d::a6]:58746 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38514 =D1=81=D1=83=D0=B1=D0=B1=D0=BE=D1=82=D0=B0, 9 =D1=84=D0=B5=D0=B2=D1=80=D0= =B0=D0=BB=D1=8F 2013=C2=A0=D0=B3., 15:28:51 UTC+4 =D0=BF=D0=BE=D0=BB=D1=8C= =D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Chris Angelico =D0=BD=D0= =B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > On Sat, Feb 9, 2013 at 10:23 PM, Vlasov Vitaly wrote: >=20 > > Hello. >=20 > > >=20 > > I found strange behavior of curses module, that i can't understand. I i= nitialize screen with curses.initscr(), then i create subwin of screen with= screen.subwin(my_subwin_sizes). After that i fill subwin with my_char in f= or-loop. On last char in last line subwin.addch() raises exception. >=20 > > >=20 > > This is my problem. Why? How to fix it? >=20 > > >=20 > > (If i will ignore exception, then last char will be displayed) >=20 > > >=20 > > Here simple example: >=20 > > http://pastebin.com/SjyMsHZB >=20 >=20 >=20 > What exception is being raised? That's kinda the most important part here= :) >=20 >=20 >=20 > ChrisA curses.error <-- all curses-related exception Exception text: curses.error: 'addch() returned ERR'