From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id MQiXF5odu2gQjBgAWB0awg (envelope-from ) for ; Fri, 05 Sep 2025 13:27:54 -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=v53Rb3Ny; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4FDB71E087; Fri, 05 Sep 2025 13:27:54 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 8EA371E047 for ; Fri, 05 Sep 2025 13:27:53 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 05AEA3858D37 for ; Fri, 5 Sep 2025 17:27:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05AEA3858D37 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=v53Rb3Ny Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by sourceware.org (Postfix) with ESMTPS id C39F53857806 for ; Fri, 5 Sep 2025 17:26:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C39F53857806 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 C39F53857806 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757093213; cv=none; b=JDOtXassLKhFJNIW90H6Z6+XMyH4KvRL19efH8/fL42YyDFlARYvC+zml+l0aTLvuSOqMDAc1LWreiwGv0TQTbARhatnxKT4ZuD+2B+7Upp7/wTgJwDBoRPsGNoPADIgVHwVqWLA77Z9vTN2Z8XabWduW6aWO0maSr9lYytavFk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757093213; c=relaxed/simple; bh=TGC1WwOxOpjFdESi+BhiIS/DsE06zG0PU7GVg7VqOiM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eSWv1MtB1Ii0KLTOdeoI04+GfoXhJMdKfUnDh9gksUXETTGljovBVqCOzvssQ1+MKRfd/BPvRIxLgrwlbLihOZY0FEV82gnRhTKQkuFmZupqeUuOthYyVUipKVmw9n4zdKtgoHIQf+zUieFrxGzvKzrnrbsBCsU3t+xH3JVLS10= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C39F53857806 Received: from eig-obgw-6007b.ext.cloudfilter.net ([10.0.30.166]) by cmsmtp with ESMTPS id uZnAuNbtjaPqLuaD5u58pV; Fri, 05 Sep 2025 17:26:51 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id uaD5uWFaxdstwuaD5uLSNa; Fri, 05 Sep 2025 17:26:51 +0000 X-Authority-Analysis: v=2.4 cv=EZbIQOmC c=1 sm=1 tr=0 ts=68bb1d5b a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=yJojWOMRYYMA:10 a=ItBw4LHWJt0A:10 a=UU47olGj_rs0WmX8oWIA:9 a=VS4QxaUSPT0UtbFnIvSC: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=ZY2O+oTgpl65wPgBWCmLrlJsdz2y3QeILoWiggOg5JU=; b=v53Rb3NytLlTlZHplbmw12+Rm3 xePVyN5S9z1HZ/D70EuqLbbfsh6MvvtJ/2bFR91W5m06Ihs6G9fZ6LeAIlWtWNqtDdFVNN++wG2cs d4rp46fFfEBuMdbh4tajIJwKX; Received: from 97-122-110-68.hlrn.qwest.net ([97.122.110.68]:41720 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1uuaD4-00000000X0Q-389l; Fri, 05 Sep 2025 11:26:50 -0600 From: Tom Tromey To: Simon Marchi Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] Allow conversion of 128-bit integers to Python In-Reply-To: <84ce5145-0c06-487b-81f5-c6c232f5949e@simark.ca> (Simon Marchi's message of "Fri, 5 Sep 2025 11:26:04 -0400") References: <20250905132926.460147-1-tom@tromey.com> <84ce5145-0c06-487b-81f5-c6c232f5949e@simark.ca> X-Attribution: Tom Date: Fri, 05 Sep 2025 11:26:48 -0600 Message-ID: <87ms78izdz.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.110.68 X-Source-L: No X-Exim-ID: 1uuaD4-00000000X0Q-389l X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-68.hlrn.qwest.net (prentzel) [97.122.110.68]:41720 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: MS4xfHHSrj5Q6avoxQN21XZf5QVmz3Q5rUgBIK3JtgmlQtBwJRYanhUecefJA3Ba6Mp8Dfwwuq7TP5Qd4eCVDGM5gflGrMX1YNxUS+zQdsA6dkSICbLXTG5b 1VX142rzEOLz/aqm1IHJas2cbpdO/806jOP0y59xhaFFGvCDteLIcqiL/Dc5DvWp7V1G+ygYsQ9f+5lMVx0QniFyKJ4WlR/ZoSo= 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> If we are forced to use kwargs, I think we might as well just use kwargs Simon> for all the args. I don't see that this provides a benefit, but I went ahead and did it anyway. Note that PyObject_Call requires a tuple argument, so we end up creating an empty one. Simon> Can you add some comments above the Python API calls, just to explain at Simon> a high level what this is doing, so that someone who doesn't know the Simon> Python API by heart can follow what is happening? I did this. I'll check it in shortly. Tom