Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"All language designers are arrogant. Goes with the territory..." (By Larry Wall)


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

SubjectAuthor
* Re: What's the public API alternative to _PyObject_GC_IS_TRACKED()?Dieter Maurer
`- Re: What's the public API alternative to _PyObject_GC_IS_TRACKED()?Paul Rubin

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

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: die...@handshake.de (Dieter Maurer)
Newsgroups: comp.lang.python
Subject: Re: What's the public API alternative to _PyObject_GC_IS_TRACKED()?
Date: Wed, 29 Dec 2021 00:03:53 +0100
Lines: 6
Message-ID: <mailman.50.1640732643.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>
<25035.38873.999288.900094@ixdm.fritz.box>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de VKRLDZRcRKMe9tK/CYRaKQYR2ijIkjO0uOA4Dc709sgQ==
Return-Path: <dieter@handshake.de>
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.014
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '(to': 0.07; 'subject:API':
0.07; 'used.': 0.07; 'cc:addr:python-list': 0.09; 'cc:name:python
list': 0.16; 'derive': 0.16; 'dict': 0.16; 'subject:()?': 0.16;
'cc:addr:python.org': 0.20; 'cc:2**1': 0.23; 'received:de': 0.23;
'error': 0.29; 'raise': 0.31; "i'm": 0.33; 'header:In-Reply-To:1':
0.34; 'methods': 0.39; 'wrote': 0.39; 'subject:What': 0.40;
'header:Received:6': 0.67; 'received:88': 0.84; 'sulla': 0.84
In-Reply-To: <CABbU2U9JLyt=7Up81sry7HV+4OyyZ23hZ=i1fxpGk-Y+_zhNaA@mail.gmail.com>
X-Mailer: VM 8.0.12-devo-585 under 21.4 (patch 24) "Standard C" XEmacs Lucid
(x86_64-linux-gnu)
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: <25035.38873.999288.900094@ixdm.fritz.box>
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>
 by: Dieter Maurer - Tue, 28 Dec 2021 23:03 UTC

Marco Sulla wrote at 2021-12-27 19:30 +0100:
>I need it since I'm developing an immutable dict. And in dict that
>function is used.

Why do you not derive from `dict` and override its mutating methods
(to raise a type error after initialization is complete)?

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

<87a6gktgwe.fsf@nightsong.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no.em...@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.python
Subject: Re: What's the public API alternative to _PyObject_GC_IS_TRACKED()?
Date: Tue, 28 Dec 2021 16:05:05 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <87a6gktgwe.fsf@nightsong.com>
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>
<25035.38873.999288.900094@ixdm.fritz.box>
<mailman.50.1640732643.3079.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="9aba6b8a14c0114f68f5ef0af6fc51de";
logging-data="6870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ju6nwN0Neyhm/gA4aiECm"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:N4FzYIB9SyHAkS/EARgMkGwQa6s=
sha1:LOEz8y3glNvNTRoX7hOA7PphTIc=
 by: Paul Rubin - Wed, 29 Dec 2021 00:05 UTC

"Dieter Maurer" <dieter@handshake.de> writes:
> Why do you not derive from `dict` and override its mutating methods
> (to raise a type error after initialization is complete)?

Yes, there is this: https://pypi.org/project/frozendict/

But, maybe Marco intends something more like a "functional" immutable
dict, i.e. one indexed with a red-black tree or similar. The idea is to
be able to make new dictionaries that are modified versions of older
ones, that share most of their structure with the older ones.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor