Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Chemistry is applied theology. -- Augustus Stanley Owsley III


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

SubjectAuthor
o Re: Py_TRASHCAN_SAFE_BEGIN/END in C extension?Barry Scott

1
Re: Py_TRASHCAN_SAFE_BEGIN/END in C extension?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry Scott)
Newsgroups: comp.lang.python
Subject: Re: Py_TRASHCAN_SAFE_BEGIN/END in C extension?
Date: Wed, 22 Dec 2021 11:09:21 +0000
Lines: 45
Message-ID: <mailman.11.1640171393.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>
<6B367D53-1718-4B7F-8D41-4100BA9E649F@barrys-emacs.org>
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\))
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de mz1+bwzs6EIXRBWEXglvagJdKjjPR/u6uIXMk4daS9fg==
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.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '3.7': 0.03; 'hopefully':
0.07; 'cc:addr:python-list': 0.09; 'debian': 0.09;
'from:addr:barry': 0.09; 'received:217.70': 0.09;
'received:217.70.178': 0.09; 'received:217.70.178.230': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'received:relay10.mail.gandi.net': 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:addr:barrys-emacs.org': 0.16; 'from:name:barry scott': 0.16;
'message-id:@barrys-emacs.org': 0.16; 'subject:extension': 0.16;
'wrote:': 0.16; 'python': 0.16; 'bug': 0.19; 'tue,': 0.19;
'cc:addr:python.org': 0.20; 'code': 0.23; '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; 'but': 0.32; "i'm": 0.33; 'there': 0.33;
'header:In-Reply-To:1': 0.34; 'yes,': 0.35; "it's": 0.37; 'use':
0.39; 'true.': 0.40; 'gives': 0.62; 'clear': 0.64; 'your': 0.64;
'lead': 0.67; 'received:217': 0.67; '2021': 0.71; 'quickly': 0.80;
'subject:END': 0.84; 'sulla': 0.84
In-Reply-To: <CABbU2U9FBYP9ueXuoYwGLBTCajK-t+QvNjuUfz8__+ncAVMuQQ@mail.gmail.com>
X-Mailer: Apple Mail (2.3693.40.0.1.81)
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: <6B367D53-1718-4B7F-8D41-4100BA9E649F@barrys-emacs.org>
X-Mailman-Original-References: <CABbU2U-UCsxYV+gnsPy3qG06mqC0k0WBarCkAC6GRTD66CTodQ@mail.gmail.com>
<1E3FF104-33CF-46F3-B20C-2E6E2729D8A3@barrys-emacs.org>
<CABbU2U9FBYP9ueXuoYwGLBTCajK-t+QvNjuUfz8__+ncAVMuQQ@mail.gmail.com>
 by: Barry Scott - Wed, 22 Dec 2021 11:09 UTC

> On 22 Dec 2021, at 08:14, Marco Sulla <Marco.Sulla.Python@gmail.com> wrote:
>
> Yes, it's deprecated, but I need it for Python 3.7, since there was
> yet no Py_TRASHCAN_BEGIN / END

Hopefully the bug report will makes clear what you have to do in your code to get things working.

Barry

>
> 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
>>
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor