Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Our way is peace. -- Septimus, the Son Worshiper, "Bread and Circuses", stardate 4040.7.


devel / comp.lang.python / Re: Py_TRASHCAN_SAFE_BEGIN/END in C extension?

SubjectAuthor
o Re: Py_TRASHCAN_SAFE_BEGIN/END in C extension?Marco Sulla

1
Re: Py_TRASHCAN_SAFE_BEGIN/END in C extension?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: Marco.Su...@gmail.com (Marco Sulla)
Newsgroups: comp.lang.python
Subject: Re: Py_TRASHCAN_SAFE_BEGIN/END in C extension?
Date: Wed, 22 Dec 2021 09:14:01 +0100
Lines: 32
Message-ID: <mailman.10.1640160880.3079.python-list@python.org>
References: <CABbU2U-UCsxYV+gnsPy3qG06mqC0k0WBarCkAC6GRTD66CTodQ@mail.gmail.com>
<1E3FF104-33CF-46F3-B20C-2E6E2729D8A3@barrys-emacs.org>
<CABbU2U9FBYP9ueXuoYwGLBTCajK-t+QvNjuUfz8__+ncAVMuQQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de AMBtrVIhw0uylgzbn6/KcA+drt+2JA0aEbSnVLYFW5gw==
Return-Path: <elbarbun@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=BOpNv1u4;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '3.7': 0.03; 'cc:addr
:python-list': 0.09; 'debian': 0.09; 'received:209.85.219': 0.09;
'url:mailman': 0.15; 'problem.': 0.15; '3.7,': 0.16; 'api.': 0.16;
'barry': 0.16; 'cc:name:python list': 0.16; 'clues': 0.16;
'deprecated,': 0.16; 'from:name:marco sulla': 0.16;
'subject:extension': 0.16; 'wrote:': 0.16; 'python': 0.16; 'tue,':
0.19; 'cc:addr:python.org': 0.20; 'url-ip:188.166.95.178/32':
0.25; 'url-ip:188.166.95/24': 0.25; 'extension': 0.25;
'url:listinfo': 0.25; 'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25;
'seems': 0.26; 'url-ip:188.166.48.69/32': 0.28; 'url-
ip:188.166.48/24': 0.28; 'url:bugs': 0.28; 'dec': 0.31; 'url-
ip:188/8': 0.31; 'message-id:@mail.gmail.com': 0.32; 'but': 0.32;
"i'm": 0.33; 'there': 0.33; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'yes,': 0.35; 'from:addr:gmail.com':
0.35; "it's": 0.37; 'received:209.85': 0.37; 'received:209': 0.39;
'use': 0.39; 'true.': 0.40; 'gives': 0.62; 'lead': 0.67; '2021':
0.71; 'quickly': 0.80; 'subject:END': 0.84; 'sulla': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc:content-transfer-encoding;
bh=AmWBOcKSqPpRcYCcphtDGPEX+5P1FCZW1YF7b7vIq8s=;
b=BOpNv1u4vIefBfcVMu7GQ+lcp+RIeFd5b7H7MRqMsIDlAPUmoagcD4R/hC9aKF6WD4
9sxoZlBYH5PlAQWS+Xt6H7BvjlDQkONntqWGjouyz4lkQPEPSWOelg9o3M63Zid1LK9A
I10tC/Ts0Usa2A80oWMrACsJ12GSsA8oy9LQPHfUh3XKzAX1FGKNTdHukk62XdYsMK4O
Pk2sNtQZd7PYXPtTHrCWDUSiMU7agG+QECikmr5d0i7Iz1bmw2hgQ4bSWlWL2BMYyraK
hfsxm+K7jCjCMGQ8gYbyGd9EKrnjnRepcVpB1wqLHgFDH/eJAKOM7xH5Z/sm9VzTvH3L
vLzQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc:content-transfer-encoding;
bh=AmWBOcKSqPpRcYCcphtDGPEX+5P1FCZW1YF7b7vIq8s=;
b=zvPGyd58kdlyptDqZTbgMlV7YVJb4jAVdyk7k4Y05I0ydlROaG0HaqHdEI5JIN/0VJ
ilMbwbnRxU2qxpd6glocdEaSNZ4lVhGuWFXjlZ4yEF3AGcnoztyQQ8zZvA0rYeHOoeiJ
APXwfM2V7/J8D35UkpNIL3zhHPrXlQQG+lQ7SCv9lNYyw/0rLMAM3l2SgeL5d178alPD
/E1ddbNkUk67P8N+AKgGaVhA12xZjK7LrmsIN3iDfNBgRiCNi7KWf86sboJXVZJAm4TW
N7GejMCWckqVot6y/tQVAhre9JOp9gTg5Udxx41WFMv8gm6LWliGrAB/372FOuRFEFJ9
Bo7Q==
X-Gm-Message-State: AOAM533SbmW+iuYfV3F00NIbabd0WYjcdfSxSNNG+js3lVL4s59QGwcO
ADvb5XYcjd0BkPTH39VtIwlZJrMw64MchZ+uLNlRc81KPs0=
X-Google-Smtp-Source: ABdhPJxH+ZXJXNHd++1G5VGpkiHV9+sgBrWHvWeKRk5tzLMp4gbqVyQEcDE1Wcd0c4WoP5hKwhq9EHpkTY9vR+8ZXU4=
X-Received: by 2002:a25:d987:: with SMTP id q129mr2682987ybg.331.1640160877420;
Wed, 22 Dec 2021 00:14:37 -0800 (PST)
In-Reply-To: <1E3FF104-33CF-46F3-B20C-2E6E2729D8A3@barrys-emacs.org>
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: <CABbU2U9FBYP9ueXuoYwGLBTCajK-t+QvNjuUfz8__+ncAVMuQQ@mail.gmail.com>
X-Mailman-Original-References: <CABbU2U-UCsxYV+gnsPy3qG06mqC0k0WBarCkAC6GRTD66CTodQ@mail.gmail.com>
<1E3FF104-33CF-46F3-B20C-2E6E2729D8A3@barrys-emacs.org>
 by: Marco Sulla - Wed, 22 Dec 2021 08:14 UTC

Yes, it's deprecated, but I need it for Python 3.7, since there was
yet no Py_TRASHCAN_BEGIN / END

On Tue, 21 Dec 2021 at 23:22, Barry <barry@barrys-emacs.org> wrote:
>
>
>
> On 21 Dec 2021, at 22:08, Marco Sulla <Marco.Sulla.Python@gmail.com> wrote:
>
> In Python 3.7, must Py_TRASHCAN_SAFE_BEGIN - Py_TRASHCAN_SAFE_END be
> used in a C extension?
>
> I'm asking because in my C extension I use them in the deallocator
> without problems, but users signalled me that they segfault in Python
> 3.7 on Debian 10. I checked and this is true.
>
>
> I searched the web for Py_TRASHCAN_SAFE_BEGIN
> And that quickly lead me to this bug.
>
> https://bugs.python.org/issue40608.
>
> That gives lots of clues for what might be the problem.
> It seems that is a deprecated api.
>
> Barry
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>


devel / comp.lang.python / Re: Py_TRASHCAN_SAFE_BEGIN/END in C extension?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor