Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Emotions are alien to me. I'm a scientist. -- Spock, "This Side of Paradise", stardate 3417.3


devel / comp.lang.python / Re: Has anone seen or know of a CFFI wrapper for PDCurses?

SubjectAuthor
o Re: Has anone seen or know of a CFFI wrapper for PDCurses?Dan Stromberg

1
Re: Has anone seen or know of a CFFI wrapper for PDCurses?

<mailman.28.1623679773.4164.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18058&group=comp.lang.python#18058

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: drsalists@gmail.com (Dan Stromberg)
Newsgroups: comp.lang.python
Subject: Re: Has anone seen or know of a CFFI wrapper for PDCurses?
Date: Mon, 14 Jun 2021 07:09:19 -0700
Lines: 44
Message-ID: <mailman.28.1623679773.4164.python-list@python.org>
References: <000f01d76028$98ea4fd0$cabeef70$@earthlink.net>
<CAGGBd_p78tfC26VnfV-nj-A57rYu+y6PonOTY3K6XdMppQ8Eog@mail.gmail.com>
<000001d760e0$15815fe0$40841fa0$@earthlink.net>
<CAGGBd_ooK3=bKFPPP4hfMvuAj7OMxzY7mv8k3-m54rQV+3-Nww@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de 6Dj0ILfH6/B2XhKeeWbGBwa8A1uH+gqQHLO4oxMcJJlQ==
Return-Path: <drsalists@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=ZghN9WzB;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'pfxlen:0': 0.04;
"python's": 0.05; 'modules': 0.07; 'sun,': 0.07; 'anyway,': 0.09;
'cc:addr:python-list': 0.09; 'dan': 0.09; 'grep': 0.09; "hasn't":
0.09; 'mon': 0.09; 'import': 0.14; '&gt;': 0.14; '...which': 0.16;
'cc:name:python list': 0.16; 'cpython': 0.16; 'dll': 0.16;
'from:addr:drsalists': 0.16; 'from:name:dan stromberg': 0.16;
'interpreter': 0.16; 'invoke': 0.16; 'matter?': 0.16; 'python3':
0.16; 'reg': 0.16; 'skip:/ 80': 0.16; 'wrapper': 0.16; 'wrote:':
0.16; 'python': 0.16; 'instead': 0.17; 'cc:addr:python.org': 0.19;
'all,': 0.19; 'maybe': 0.20; 'option': 0.21; "i've": 0.22;
'object': 0.23; 'tried': 0.26; 'cc:2**0': 0.27; 'brought': 0.27;
'jun': 0.27; 'library': 0.27; 'port': 0.27; 'module': 0.28;
'output': 0.28; 'seem': 0.31; 'but': 0.31; 'looked': 0.31;
'shared': 0.31; '13,': 0.32; 'monday,': 0.32; 'message-
id:@mail.gmail.com': 0.33; 'using': 0.33; 'header:In-Reply-To:1':
0.33; 'subject:for': 0.33; 'received:google.com': 0.34; 'email
addr:python.org&gt;': 0.35; 'from:addr:gmail.com': 0.35;
'windows': 0.36; '(or': 0.37; 'received:209.85': 0.38;
'received:209': 0.38; 'list': 0.39; 'whether': 0.40; 'ago': 0.40;
'copy': 0.61; 'to:': 0.62; 'worked': 0.63; 'your': 0.64; 'seen':
0.65; 're:': 0.65; 'june': 0.66; 'years': 0.67; 'url-ip:lookup
error': 0.69; 'cc:': 0.69; 'shows': 0.70; 'below': 0.71;
'interesting': 0.71; 'sent:': 0.71; 'age.': 0.77; '2021': 0.84;
'email name:&lt;python-list': 0.84; 'extent.': 0.84; 'pdt': 0.84;
'subject:Has': 0.84; '2010,': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=FH5c2yXeOr+Ox68ICNXUXuD6wogyatLqDcDDzTxGs0Q=;
b=ZghN9WzBuQvhKeNaau149B3q0YrEpH1XdP9e07EWcTMw/kufuOQWs4l7IheK6ZKBFv
YRlwZjsnQFawGQHn5GPBEL+GpH/4cSgS6jszVRKpgeTn5MJa8mpMsXA21nmz/MrQFbVh
mjrR7auFWK3XCvV1OAvFOkdXl4Q4BN5iiqCBI9W9VrTp3F45ZZ31y7CkKmK/C7jSOPd+
IIdfOVldH/EFFK+rbkO1qLLo9ndBRBULPkqVXG+IfmT8uHA0I1jGejjA4UGUSjRWHIa7
THNdO4ShtdxG4Od+33Mip5eEnZ8PJcolhZ8QDvJV+ZxDBAApB1Naaci8aaWImcHY+mt7
eDDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=FH5c2yXeOr+Ox68ICNXUXuD6wogyatLqDcDDzTxGs0Q=;
b=pDSNwEMwvBLbv3HNUGJ/BL89d9jr5fqhIxd7J913GGgennhXlZNJ0iWNfRUDk1truU
FOK/gzniIdiS8fgiLUo9i0gqdqd8FvoJ5Jt97FkmgWDCIbmdmKwmvzHd4PSBh2gWrxT+
C8tA+kSL2O5uNj5FvHtNTZTX1Rm3pnek8lbdD+HWp0jpMENgrtPafAfrH40CREIg5Yy+
qTNlokVkEPRgGxMPmpxb4B7kKUmHLol4dp8eo4QFoaFxm/jOXjD/RQVB9c4Jw3Fxn567
WqLJ55snTxZ+2+Y5fN+VPKtX5YO109W0NV2BBg17/15y+89zWePHvd/HP+aWylfnrBk2
7Npw==
X-Gm-Message-State: AOAM531LkQXTwFoX7emzFbOai5w6Eeud/pZg65KOXIHcvyrwE2dQp5t0
Jv+EpAI+fmpJFcO8+zUVABZ5CvYeUk5LQJ+o17yjupebEMw=
X-Google-Smtp-Source: ABdhPJyu3/I4p6kwvFAlXqG44MjHsw7nob/KPEoDJpWSi4zAYlfKFWji+VD6yBDK0021AtQPtjbrQJ2qtP+dwpK9WBM=
X-Received: by 2002:ab0:634d:: with SMTP id f13mr11849256uap.90.1623679770688;
Mon, 14 Jun 2021 07:09:30 -0700 (PDT)
In-Reply-To: <000001d760e0$15815fe0$40841fa0$@earthlink.net>
X-Content-Filtered-By: Mailman/MimeDel 2.1.34
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://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: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAGGBd_ooK3=bKFPPP4hfMvuAj7OMxzY7mv8k3-m54rQV+3-Nww@mail.gmail.com>
X-Mailman-Original-References: <000f01d76028$98ea4fd0$cabeef70$@earthlink.net>
<CAGGBd_p78tfC26VnfV-nj-A57rYu+y6PonOTY3K6XdMppQ8Eog@mail.gmail.com>
<000001d760e0$15815fe0$40841fa0$@earthlink.net>
 by: Dan Stromberg - Mon, 14 Jun 2021 14:09 UTC

On Sun, Jun 13, 2021 at 10:42 PM <pjfarley3@earthlink.net> wrote:

> > From: Dan Stromberg <drsalists@gmail.com>
> > Sent: Monday, June 14, 2021 12:36 AM
> > To: pjfarley3@earthlink.net
> > Cc: Python List <python-list@python.org>
> > Subject: Re: Has anone seen or know of a CFFI wrapper for PDCurses?
> >
> > > On Sun, Jun 13, 2021 at 12:50 AM <mailto:pjfarley3@earthlink.net>
> wrote:
> > > Hi All,
> > >
> > > I have been investigating the possibility of wrapping the PDCurses DLL
> on
> > > Windows (or even better the PDCursesMod fork) using cffi instead of
> ctypes.
> > > The unicurses project tried this using ctypes 11 years ago but
> unicurses
> > > hasn't been worked on since 2010, and it shows its age.
> >
> > An option for your consideration: Maybe port Python's included curses
> module to PDCursesMod?
>
> An interesting idea, to be sure, and one I have looked at to some extent.
> One thing that I've never quite learned is whether the included curses and
> curses_panel modules statically link a copy of the ncurses library on *ix
> systems or whether they invoke the ncurses.so library dynamically.
>
Why would it matter?

Anyway, if I start up a CPython 3.9, import curses, and lsof the
interpreter, I can see:
$ lsof -p 26258 | grep curses
below cmd output started 2021 Mon Jun 14 07:04:25 AM PDT
python3 26258 dstromberg mem REG 254,1 231360 25167676
/usr/lib/x86_64-linux-gnu/libncursesw.so.6.1
python3 26258 dstromberg mem REG 254,1 546400 1316749
/usr/local/cpython-3.9/lib/python3.9/lib-dynload/_
curses.cpython-39-x86_64-linux-gnu.so

....which would seem to say that curses is brought into the interpreter on
demand, from a shared object (dll).

HTH.


devel / comp.lang.python / Re: Has anone seen or know of a CFFI wrapper for PDCurses?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor