From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id v+f2GF5wIGp1ozIAWB0awg (envelope-from ) for ; Wed, 03 Jun 2026 14:20:14 -0400 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=Anf5UuiS; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 513AB1E062; Wed, 03 Jun 2026 14:20:14 -0400 (EDT) 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 1E52E1E062 for ; Wed, 03 Jun 2026 14:20:13 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9B82F4BA2E33 for ; Wed, 3 Jun 2026 18:20:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B82F4BA2E33 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=Anf5UuiS Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 6BD5D4BA2E17 for ; Wed, 3 Jun 2026 18:19:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6BD5D4BA2E17 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 6BD5D4BA2E17 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780510784; cv=none; b=vxjKQagDECp68hV/d4QIyNM6WLxeiie+vV4IgsNGf3tBpK4m52jcmDRZV3nE559tCpw5CVkYViyiRJxGV75SqrjSPI0Zi5/tGhOnDjzQeHAkxGm+Fev+K55NzsWt9SkA6pDMpzydcncj1M5a5bb/ePokPhRZqVfprFi3kfHZGRM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780510784; c=relaxed/simple; bh=PNbhrslEkxt2y/9vuqUnm2cWWOOZGPX/vkNNM4L5yos=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=O7Dmn71N2KeXEaulga0ZLWkktkB6ThzHs4mmpA4sS4SpEMhXksZXclX1Y7lsFIoQcBrtSaiDlRBG/vFeveQlVcKVkYl3eYW0EbTvHkUkKYQ0jGX5CKj9jLX9WWQMkiuOtw4DAhDOukTPWTuTUqdypg0b9CTqhlZ9ElKJzmOhLI8= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=Anf5UuiS reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BD5D4BA2E17 Received: from eig-obgw-5007b.ext.cloudfilter.net ([10.0.29.167]) by cmsmtp with ESMTPS id UonIwdlzxgwLnUqBrwafId; Wed, 03 Jun 2026 18:19:43 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id UqBnwrnZV9e09UqBnwPxES; Wed, 03 Jun 2026 18:19:39 +0000 X-Authority-Analysis: v=2.4 cv=SY/3duRu c=1 sm=1 tr=0 ts=6a20703f a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=FelO9ux0wxsA:10 a=ItBw4LHWJt0A:10 a=7CQSdrXTAAAA:8 a=gOu9VbOrDG3hFkR3mEAA:9 a=a-qgeE7W1pNrGK8U0ZQC: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=d7W3N839OaBkm1jOTu9jZiznrBvsww3aQN6A8v2WZ2E=; b=Anf5UuiSwM9V6FvZEZvO4pVigd sk61W22TvAYgGnGnWmJlpyCl2Lx7t2UmtWPE6gKUF5ANtskjNLR9zLY84FTcxeV/eCq2y+GRqGVya 1hajHDZseLfUT12s/tRCGElIW; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:47520 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wUqBm-00000001dPX-3ywu; Wed, 03 Jun 2026 12:19:39 -0600 From: Tom Tromey To: Matthieu Longo Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH v3 1/4] Add gdbpy_borrowed_ref In-Reply-To: <962fc6a6-7e7a-4427-b312-2195d62d19a4@arm.com> (Matthieu Longo's message of "Mon, 1 Jun 2026 11:00:15 +0100") References: <20260521-python-safety-initial-v3-0-d0679c36e499@tromey.com> <20260521-python-safety-initial-v3-1-d0679c36e499@tromey.com> <962fc6a6-7e7a-4427-b312-2195d62d19a4@arm.com> X-Attribution: Tom Date: Wed, 03 Jun 2026 12:19:37 -0600 Message-ID: <87tsrjh4g6.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: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wUqBm-00000001dPX-3ywu X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:47520 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFvOHvUylaKyddkQwA6qzLL1XkUHwX9vLlOG5niPDNmsRSeI5UkNedULi9LUdHy5JKCH6tsztYKKq6yJy7bv1do12cGnIOqxzMCVCLVy6pamGufX7NPk zNwlvOfdPDWbF3KxUh3G+aPppxnyR4gfRrNeQP/vEh58axv9TZZ7S8GgFo1XV7vQMqtjrYLGpQZRL10hBGS8ezQEk7aktI9vDdY= 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 >>>>> "Matthieu" == Matthieu Longo writes: >> This adds new gdbpy_opt_borrowed_ref and gdbpy_borrowed_ref classes. >> These classes are primarily for code "documentation" purposes -- it >> makes it clear to the reader that a given reference is borrowed. >> However, they also add a tiny bit of safety, in that conversion to >> gdbpy_ref<> will either be rejected (by the "opt" class) or acquire a >> new reference. Matthieu> Any idea when this patch could land on master ? It's hard to say. For ordinary-ish patches, I tend to wait a couple of weeks and then just check them in if they haven't been commented on. For something like this, though, I'd normally wait and/or ping it until there's some review; the difference being that a big change to how new Python code should be written ought to have some buy-in. I suppose I could land this particular one sooner. That's a little weird since it's not actually used by anything. OTOH it unblocks stuff you're doing. Tom