From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id RSvFEiPjoWn30gwAWB0awg (envelope-from ) for ; Fri, 27 Feb 2026 13:32:03 -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=gG09tKFa; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 302C91E089; Fri, 27 Feb 2026 13:32:03 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED,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 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 876B31E089 for ; Fri, 27 Feb 2026 13:32:02 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 3CC644BA23E4 for ; Fri, 27 Feb 2026 18:32:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3CC644BA23E4 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=gG09tKFa Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id 233DC4BA2E18 for ; Fri, 27 Feb 2026 18:31:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 233DC4BA2E18 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 233DC4BA2E18 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=1772217093; cv=none; b=thnT1YmZRQgoIchST+n2/GtDmru1PEJkFdP/d58ZBz3dOXn5LtV4uHn3P2S9SmS5p86OzXyVYcfXMOHeFjORLd1u2M82P+UxUmTyUa/yBrV84hefzt/1ObNw3MabB+OJ9ga56vUB/s5cLiwA8JogV+IaToJ8C9/GylXSsGQsFRA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772217093; c=relaxed/simple; bh=PpnzOpkRy2ZOkkxa9vkvTxkSbvMXhpHxZGL8WydEmQA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lqzIVwluNgZNHYMv5x+Ip5JxhhwRl2BOrl64R+B5j9woUnAJewt8er2/OGqM1hiOg0T67uwfnVQUAPZmRWkHMbCCwO8/iJmJl+giZvU48tJkBWZOA37tr0LRaUyIPjfs4DG5mIPXX++b535aDYzw+R1hYTajub3g+hismP+W7Xg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 233DC4BA2E18 Received: from eig-obgw-6004b.ext.cloudfilter.net ([10.0.30.210]) by cmsmtp with ESMTPS id vxm4vwICnKjfow2cev1kp6; Fri, 27 Feb 2026 18:31:32 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id w2cdvae2rK8vzw2cdvL294; Fri, 27 Feb 2026 18:31:31 +0000 X-Authority-Analysis: v=2.4 cv=cJDgskeN c=1 sm=1 tr=0 ts=69a1e304 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=HzLeVaNsDn8A:10 a=ItBw4LHWJt0A:10 a=_W4t-xeagBMn6UEonMgA:9 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=PpnzOpkRy2ZOkkxa9vkvTxkSbvMXhpHxZGL8WydEmQA=; b=gG09tKFaNwz/okXuCBPu1C02JM VKKCFXKMnHOCgy0BoVLodkEVUy6hOkKuNLxgCYI8LPLDj4ISZZO4TbqhHPgBPEzlc/n0DJvPqweJ2 hcTxnyVVVhRXCrEOoNGEz169P; Received: from 97-122-122-234.hlrn.qwest.net ([97.122.122.234]:34844 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vw2cc-00000001Htd-3dyc; Fri, 27 Feb 2026 11:31:30 -0700 From: Tom Tromey To: Tom de Vries Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] Use the "O!" format more in the Python code In-Reply-To: (Tom de Vries's message of "Fri, 27 Feb 2026 19:23:03 +0100") References: <20260227164843.2275912-1-tom@tromey.com> X-Attribution: Tom Date: Fri, 27 Feb 2026 11:31:29 -0700 Message-ID: <87qzq6t4vy.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: 1vw2cc-00000001Htd-3dyc X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-122-234.hlrn.qwest.net (bapiya) [97.122.122.234]:34844 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKWBENmCYJbKwnfWk4a6XYz578Jet6+8DqjZiywocfkO15B/vB5DQTCrrAWfW6qF77mWpO7wtUJUd5nOL3KvvaCji6dthUeYYUNQ5w0vsAO82Pi4XYPG YcJmsB5Z/2dUsc/SMTK9RiMuwwJy2TOl8eZDo45yRAnos8wju5ij5QX5DdKU89m0dmfq9J+u134JOjmZm1nCMImZ5Nek1tI81J4= 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 >>>>> "Tom" == Tom de Vries writes: Tom> I saw other direct comparisons to recpy_insn_type in the code, and Tom> wondered if those should likewise allow subclasses using Tom> PyObject_TypeCheck. Tom> But I suppose we just assume there are no subclasses? I'm not sure if you can subclass an instruction type (I thought perhaps we needed special code in the type definition to support subclassing), but if you can, then it should be usable here. Tom