Deutsch English Français Italiano |
<mailman.57.1712071011.3468.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: Barry <barry@barrys-emacs.org> Newsgroups: comp.lang.python Subject: Re: Making 'compiled' modules work with multiple python versions on Linux Date: Tue, 2 Apr 2024 16:16:09 +0100 Lines: 21 Message-ID: <mailman.57.1712071011.3468.python-list@python.org> References: <CAJQBtgmb=vSW+PoBHHzefwf2OZLVRrokz2o7qJ5TORYB5QUGaQ@mail.gmail.com> <B69B7D35-A520-4987-A856-CD417B4AB9EB@barrys-emacs.org> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 80cawTztPnvtupQHMIVEkAMIaAEt4f7Lnus0COwqiXgw== Cancel-Lock: sha1:NNmq24SDJvVXfM/NM1jdTiKuWlE= sha256:mq7WMVMAOAjnISZOF2ybBxfvep5E4QO0Vc7mFblNX2o= Return-Path: <barry@barrys-emacs.org> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:python': 0.06; 'tests': 0.07; 'cc:addr:python-list': 0.09; 'from:addr:barry': 0.09; 'received:217.70': 0.09; 'received:217.70.178': 0.09; 'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09; 'cc:no real name:2**0': 0.14; '3.10': 0.16; 'api.': 0.16; 'barry': 0.16; 'from:addr:barrys-emacs.org': 0.16; 'message-id:@barrys- emacs.org': 0.16; 'sounds': 0.16; 'specify': 0.16; 'subject:compiled': 0.16; 'subject:modules': 0.16; 'wrote:': 0.16; 'python': 0.16; 'api': 0.17; 'cc:addr:python.org': 0.20; 'version': 0.23; 'code': 0.23; 'run': 0.23; 'cc:2**0': 0.25; 'library': 0.26; 'expect': 0.28; 'email addr:python.org>': 0.28; 'python-list': 0.32; 'but': 0.32; 'there': 0.33; 'release': 0.34; 'work.': 0.34; 'header:In-Reply-To:1': 0.34; 'source': 0.36; 'could': 0.38; 'use': 0.39; 'want': 0.40; 'limited': 0.62; 'verify': 0.64; 'received:217': 0.67; 'url-ip:104.18/16': 0.67; 'right': 0.68; 'matter': 0.68; 'url:net': 0.68; 'adds': 0.69; 'etc,': 0.69; 'left': 0.83; 'email name:<python-list': 0.84; 'url:sourceforge': 0.84; 'weird': 0.84 In-Reply-To: <CAJQBtgmb=vSW+PoBHHzefwf2OZLVRrokz2o7qJ5TORYB5QUGaQ@mail.gmail.com> X-Mailer: iPad Mail (21E236) X-GND-Sasl: barry@barrys-emacs.org X-Content-Filtered-By: Mailman/MimeDel 2.1.39 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 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: <B69B7D35-A520-4987-A856-CD417B4AB9EB@barrys-emacs.org> X-Mailman-Original-References: <CAJQBtgmb=vSW+PoBHHzefwf2OZLVRrokz2o7qJ5TORYB5QUGaQ@mail.gmail.com> Bytes: 3904 > On 1 Apr 2024, at 18:14, Left Right via Python-list <python-list@python.or= g> wrote: >=20 > It sounds weird that symbols from Limited API are _missing_ (I'd > expect them to be there no matter what library version you link with). You have to specify the version of the limited API that you want to use. Each release adds more symbols to the limited API. So if you compile against 3.10 version it works with 3.10, 3.11, 3.12 etc, but not with 3.9. My pycxx project has test code that I use to verify pycxx=E2=80=99s use of p= ython API. You could check out the source and run my tests to see how things work. It is on https://sourceforge.net/projects/cxx/ Barry