Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I have never seen anything fill up a vacuum so fast and still suck. -- Rob Pike, on X.


devel / comp.lang.python / Re: What's the public API alternative to _PyObject_GC_IS_TRACKED()?

SubjectAuthor
o Re: What's the public API alternative to _PyObject_GC_IS_TRACKED()?Marco Sulla

1
Re: What's the public API alternative to _PyObject_GC_IS_TRACKED()?

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

  copy mid

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

  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: What's the public API alternative to _PyObject_GC_IS_TRACKED()?
Date: Tue, 28 Dec 2021 08:40:37 +0100
Lines: 22
Message-ID: <mailman.46.1640677276.3079.python-list@python.org>
References: <CABbU2U89U=itsPwsU8+POREYMCf9F3U=_CciwVO0ynCAJ0aFcQ@mail.gmail.com>
<CC507B7F-0A6C-415A-952E-2C7CDC75C9EC@barrys-emacs.org>
<CABbU2U9JLyt=7Up81sry7HV+4OyyZ23hZ=i1fxpGk-Y+_zhNaA@mail.gmail.com>
<CAEfz+TwYhn71gEoZ5Xd0=0ni-YCnwjpjuqHokWJCr8CXeGbq4g@mail.gmail.com>
<CABbU2U8YEjjQgd029YkYeDFBNbz5da8E+Nfyr-q0GYgLf2WRuA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de nW3tfzplasF8nFywfObRgQAdh328+N5+xMRBF+j5lrcQ==
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=LCOUsz2x;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; "python's": 0.05;
'subject:API': 0.07; 'used.': 0.07; 'api,': 0.09; 'cc:addr:python-
list': 0.09; 'received:209.85.219': 0.09; 'api.': 0.16;
'cc:name:python list': 0.16; 'dict': 0.16; 'expose': 0.16;
'from:name:marco sulla': 0.16; 'inada': 0.16; 'naoki': 0.16;
'subject:()?': 0.16; 'useful.': 0.16; 'wrote:': 0.16; 'python':
0.16; 'api': 0.17; 'tue,': 0.19; 'cc:addr:python.org': 0.20;
'cc:2**1': 0.23; 'seems': 0.26; 'function': 0.27; 'dec': 0.31;
'think': 0.32; 'message-id:@mail.gmail.com': 0.32; "i'm": 0.33;
'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'change': 0.36; 'received:209.85':
0.37; 'received:209': 0.39; 'subject:What': 0.40; "there's": 0.61;
'public': 0.63; '2021': 0.71; 'sulla': 0.84; 'optimization': 0.93
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; bh=PSVvnA/Gz4wx42RlKUd7c7QZz/xUw8BcKQbr/T+PuUU=;
b=LCOUsz2x8OL0f7fUP+MtpqcYr37xyYGY1exufF75royCqrDcc4P2ySrVJnv08SHyJA
yjDxiPEBlR61lLHg0sqbhwK2GdwcT8TtjR94aIXctznQm4jfS7Q+TQMZNBSieDLYQPGh
f3/OvAZg2Ky/RARniwa9+oUCuspyZcQxwxQEVUE8mKW/4CfBSxtZqiC572FHVKwhZYXN
lvoekEj7ey6+srFlObIJKV7qodhtle7w1t8CCx7ZgUlv/6Zfy+uC36u+pUKiF7PDVLZI
+2TisiFscNelnuwf7ATPpT7IULaz/H3WjBUvjUt2XbAq+eiLj2QbMc0fykc3qSjPadYy
J1hw==
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;
bh=PSVvnA/Gz4wx42RlKUd7c7QZz/xUw8BcKQbr/T+PuUU=;
b=MGpKOj3kQpOb0+1BomSIBvl52Fq6oJ3eP+/fG9d5cG2+KjlW2voVnINZmHCIwdFhcl
Ha/yP4BMmqpfiOQamlmvtIgUGnWTJ6NJ2OgdJopRdZZ2so8v80a7KVKK5bOjM1dtS4qz
MBqvKW6d3xfrq0RthTg88ku+UXBmSReJBzNrqBMqMqZTSlj/JZtKWo1lxpR6kqxyg/Wb
gmD+fUwGHSXAdokGh2MJwxC/+8eddjrywjZCDOEZEHN6KsM6+Kec6+gSxT9yQetu3gFI
UEJYm5lxgiUZP9HKjDET1adwCI0JDQ4vobvS8L3++3i0hlIXZdQAGWDMH87piD3c5C2E
yB6w==
X-Gm-Message-State: AOAM533UZLcDbHB49IMd+aSwdje236I9Iz/8S94W/6KcJ66SEyVF7Hb4
SvujeJ7AsmuGuMEhv45nzgtUuOMGaRUuTbvlnofjjNHjbu4=
X-Google-Smtp-Source: ABdhPJzZfs6ABLlnShfIPdhKFjH6S1n5VNtyQE4fwDZsAI77zSM5+Fi3t2Zz9bZzDE7lH1SLoUxK4NoH3a1I3cTUmhU=
X-Received: by 2002:a25:8a:: with SMTP id 132mr9918256yba.738.1640677274017;
Mon, 27 Dec 2021 23:41:14 -0800 (PST)
In-Reply-To: <CAEfz+TwYhn71gEoZ5Xd0=0ni-YCnwjpjuqHokWJCr8CXeGbq4g@mail.gmail.com>
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: <CABbU2U8YEjjQgd029YkYeDFBNbz5da8E+Nfyr-q0GYgLf2WRuA@mail.gmail.com>
X-Mailman-Original-References: <CABbU2U89U=itsPwsU8+POREYMCf9F3U=_CciwVO0ynCAJ0aFcQ@mail.gmail.com>
<CC507B7F-0A6C-415A-952E-2C7CDC75C9EC@barrys-emacs.org>
<CABbU2U9JLyt=7Up81sry7HV+4OyyZ23hZ=i1fxpGk-Y+_zhNaA@mail.gmail.com>
<CAEfz+TwYhn71gEoZ5Xd0=0ni-YCnwjpjuqHokWJCr8CXeGbq4g@mail.gmail.com>
 by: Marco Sulla - Tue, 28 Dec 2021 07:40 UTC

Hi, Inada Senpai. So I do not need PyObject_GC_Track on cloning or
merging, or MAINTAIN_TRACKING on insert?

On Tue, 28 Dec 2021 at 07:58, Inada Naoki <songofacandy@gmail.com> wrote:
>
> On Tue, Dec 28, 2021 at 3:31 AM Marco Sulla
> <Marco.Sulla.Python@gmail.com> wrote:
> >
> > I need it since I'm developing an immutable dict. And in dict that
> > function is used.
> >
> > I do not understand why there's no public API for that function. It
> > seems very useful.
> >
>
> I think it is useful only for optimization based on *current* Python internals.
> That's why it is not a public API. If we expose it as public API, it
> makes harder to change Python's GC internals.
>
>
> --
> Inada Naoki <songofacandy@gmail.com>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor