[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python curses



On Tue, 10 Jan 2023 09:31:26 -0600
David Wright <deblis@lionunicorn.co.uk> wrote:

> On Tue 10 Jan 2023 at 09:01:17 (-0500), paulf@quillandmouse.com wrote:
> > On Tue, 10 Jan 2023 08:34:05 -0500 Greg Wooledge
> > <greg@wooledge.org> wrote:
> > > On Tue, Jan 10, 2023 at 08:24:11AM -0500, paulf@quillandmouse.com
> > > wrote:
> > > > What you wrote triggered something. I'd been following the
> > > > Python curses docs, which tell you to write, for example,
> > > > "A_REVERSE". And Python was throwing exceptions. But based on
> > > > what you wrote, I substituted "curses.A_REVERSE", which works.
> > > > 
> > > > Problem solved... for now.
> 
> Exactly: just for now.
> 
> > > I'm a Python novice, but I believe what you're seeing is the
> > > difference between
> > 
> > No, here's what happened. I was going along, and I used "A_REVERSE"
> > in my code, according to the online docs. Exception, didn't
> > recognize the name. That didn't make sense; this attribute is basic
> > to curses. So I started investigated versions of Python, ncurses,
> > Python curses, etc.
> > 
> > But as it turns out, instead of typing "A_REVERSE", I should have
> > ignored the docs and typed "curses.A_REVERSE". That worked, and
> > obviated the whole versioning problem.
> 
> You keep mentioning "the docs" without saying which docs, so a
> reference might be helpful.

Sorry. I'm using the following (and related pages):

https://docs.python.org/3/library/curses.html

These appear to be the most authoritative.

Paul

-- 
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster


Reply to: