Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38514

Re: Python3 curses behavior

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 <vnigtha@gmail.com>
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 <mailman.1541.1360409341.2939.python-list@python.org>
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> <mailman.1541.1360409341.2939.python-list@python.org>
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 <vnigtha@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.1543.1360413504.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


суббота, 9 февраля 2013 г., 15:28:51 UTC+4 пользователь Chris Angelico написал:
> On Sat, Feb 9, 2013 at 10:23 PM, Vlasov Vitaly <vnigtha@gmail.com> wrote:
> 
> > Hello.
> 
> >
> 
> > I found strange behavior of curses module, that i can't understand. I initialize 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 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

curses.error <-- all curses-related exception
Exception text: curses.error: 'addch() returned ERR'

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-09 03:23 -0800
  Re: Python3 curses behavior Chris Angelico <rosuav@gmail.com> - 2013-02-09 22:28 +1100
    Re: Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-09 04:38 -0800
    Re: Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-09 04:38 -0800
  Re: Python3 curses behavior Terry Reedy <tjreedy@udel.edu> - 2013-02-09 14:22 -0500
    Re: Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-10 14:06 -0800
      Re: Python3 curses behavior Dan Stromberg <drsalists@gmail.com> - 2013-02-11 15:53 -0800
    Re: Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-10 14:06 -0800

csiph-web