From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kUVpIDrSnWlutggAWB0awg (envelope-from ) for ; Tue, 24 Feb 2026 11:30:50 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=TkkWC3Cz; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 7F28B1E089; Tue, 24 Feb 2026 11:30:50 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id DC5E61E089 for ; Tue, 24 Feb 2026 11:30:49 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 06E684BAD158 for ; Tue, 24 Feb 2026 16:30:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 06E684BAD158 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=TkkWC3Cz Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id 8A77F4BA2E0E for ; Tue, 24 Feb 2026 16:29:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A77F4BA2E0E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8A77F4BA2E0E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771950596; cv=none; b=joNSYEq+UmGNsQoaiI/NnkclGt4bvHHt2Dk3Z/DWh+pQoducQLZ4Fl0n0ZAkoo7juAYNBOMPM9baq88YhuYjTyWnpPRTkPuC5ikJHYP06yWOFgAwSfxMVvJ8IY9edGF+9S9890bJJJ+jkuCqCJP9LMzr0k2O8SxpWjV6uMuuJp8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771950596; c=relaxed/simple; bh=l8euBQxXvX3GQWNsMMIhOCojdHCbkyt/OQxVDCHZm40=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ULhOPmdr+4pb8YjU25v8G3IxZu5wY3Z6xgoJCs9rMb2pGEGbEOHMqB+28BW7qQEiYAxrW+K3PA2jPAiiWdCf7Pc4X+R83Q9ak2LfjNrp7Y5oqMJb9JcatOnkd7vk1L1Nvj5TCfDO3B8CZcLMBKwdxTXF3pKSMQBWa6Noa3gvVeQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A77F4BA2E0E Received: from eig-obgw-5006b.ext.cloudfilter.net ([10.0.29.217]) by cmsmtp with ESMTPS id ukWkvcZ54KjfouvIEvY2eA; Tue, 24 Feb 2026 16:29:50 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id uvI8vorcwOs9RuvI9vvRft; Tue, 24 Feb 2026 16:29:45 +0000 X-Authority-Analysis: v=2.4 cv=HPPDFptv c=1 sm=1 tr=0 ts=699dd1fe a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=HzLeVaNsDn8A:10 a=ItBw4LHWJt0A:10 a=dzWzf_mpAAAA:8 a=drhMHIpc66zivZXj_GwA:9 a=b4DR9a7p2ZdsqdHBznES:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=EFTbYqUjoXWSKRzJzr4cHVdmtYLWsAxWO3cTvntpz5M=; b=TkkWC3Cz342u2HNB2weTjaT/W4 KLcNrdPRoc92Oabgie9ERXoy9+RAZFxLn/DqRuuIJAO+i5aZeQYMFZs356VmvkJt3FlC74MeeG8aM 2VGJPcZ12yo19MuMdD1Lci0Eq; Received: from 97-122-122-234.hlrn.qwest.net ([97.122.122.234]:52120 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vuvI8-00000002JWY-2Sjn; Tue, 24 Feb 2026 09:29:44 -0700 From: Tom Tromey To: Simon Marchi Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [RFC 0/4] Better Python safety In-Reply-To: <14087536-5ab7-48f7-a10f-30cf0a016254@simark.ca> (Simon Marchi's message of "Mon, 23 Feb 2026 20:05:42 -0500") References: <20260222200759.1587070-1-tom@tromey.com> <87y0kjqc2n.fsf@tromey.com> <87tsv7qaj2.fsf@tromey.com> <14087536-5ab7-48f7-a10f-30cf0a016254@simark.ca> X-Attribution: Tom Date: Tue, 24 Feb 2026 09:29:43 -0700 Message-ID: <877bs2w1e0.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.122.234 X-Source-L: No X-Exim-ID: 1vuvI8-00000002JWY-2Sjn X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-122-234.hlrn.qwest.net (bapiya) [97.122.122.234]:52120 X-Source-Auth: tom+tromey.com X-Email-Count: 8 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfAWrLeXcvlBfS/f9vG5YtAa9PkQRuVOrHAykInDXNmVdPq9rpU2s3UYTKwlHBVHi2pMdP0r1VzueazwoDdLa/pMMFatoI3tCGhzL9QV50ORWwUwCgz3G Ldht+TXJuRkiBbBN+56CsRXK1i0HXTwEvuJiW9dOL0DacSgJM8gL/XUh2yQ2PLLXJwdntqfUQS/Rnm3j0cPcyfH+2zSvIm37oSQ= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Simon" == Simon Marchi writes: >> gdbpy_optional_ref is used for keyword arguments and also by setters. >> Not sure if it will see any other uses. Simon> Is this kind of ref also borrowed? If so I would include "borrowed" in Simon> its name, otherwise it's confusing. Perhaps gdbpy_opt_borrowed_ref? Or Simon> flip the naming around, make the "default" borrowed and find a name for Simon> the "strong" refs. Yeah, it is also borrowed. I can rename it easily enough. I think it's fine for optionally-borrowed-ref to have a longer name since this concept is barely used. Tom