From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id wfHJC1fqoWki2gwAWB0awg (envelope-from ) for ; Fri, 27 Feb 2026 14:02:47 -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=xQBzDGoU; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2A1771E089; Fri, 27 Feb 2026 14:02:47 -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 69C251E089 for ; Fri, 27 Feb 2026 14:02:46 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id F06A44BA23F6 for ; Fri, 27 Feb 2026 19:02:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F06A44BA23F6 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=xQBzDGoU Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 5E20A4BA2E10 for ; Fri, 27 Feb 2026 19:02:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E20A4BA2E10 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 5E20A4BA2E10 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772218939; cv=none; b=gaehHm8U/vz7R6bOcLOM4YN9T2L2AsBuCdhTfLIQj4ROpYjI0XlUw5r9pHg6q0+SUl2c+3bxpCZGbVEFNd0j6eNFD+JLd/wN8mBx0CnEvHYBsW5nYN350VEp6Wgi1X8MNFl+z87qsQsWHHGnU7xCTAoTR3Y547DwqihNzavqOqY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772218939; c=relaxed/simple; bh=5LopaKGATaA+4oR8wZ7NFjrbNdH62sbJqNFWSO10Z3I=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=dGh1XJxwP6qNPwcRwPt1RYWaMlV1Vy9cLehMl+HaCmHVxKCp+czyX3YoS3FOASE2r3aKwoGjbysTQe5gQ0BZwpEIxhOFzs1siWybAsm2Yc6GYHZrm0nDM6fRBx3b5qr9oiovUUbEnG7J6QXECj3h0Gi3M7vXSYG0Obyt6aasCjo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E20A4BA2E10 Received: from eig-obgw-5003b.ext.cloudfilter.net ([10.0.29.155]) by cmsmtp with ESMTPS id w0ipvgEQrKXDJw36RvrMEB; Fri, 27 Feb 2026 19:02:19 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id w35zvrTAE2l0kw360vhM5y; Fri, 27 Feb 2026 19:01:52 +0000 X-Authority-Analysis: v=2.4 cv=UfRRSLSN c=1 sm=1 tr=0 ts=69a1ea3a a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=HzLeVaNsDn8A:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=_W4t-xeagBMn6UEonMgA:9 a=4G6NA9xxw8l3yy4pmD5M: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=5LopaKGATaA+4oR8wZ7NFjrbNdH62sbJqNFWSO10Z3I=; b=xQBzDGoUwadIAU+xF5Tllg081h ps7AN8+0Ax53/UtgDk13+VGeuoSciunayo2eqSAIFmSwqSCLM2Q6EOWdQn58cOoQ8BUsu8OS84g0c ADron1yM9hpgmBuzgvhqX5vup; Received: from 97-122-122-234.hlrn.qwest.net ([97.122.122.234]:53590 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vw35z-00000001ovZ-2FMo; Fri, 27 Feb 2026 12:01:51 -0700 From: Tom Tromey To: Tom Tromey Cc: Tom de Vries , gdb-patches@sourceware.org Subject: Re: [PATCH] Use the "O!" format more in the Python code In-Reply-To: <87qzq6t4vy.fsf@tromey.com> (Tom Tromey's message of "Fri, 27 Feb 2026 11:31:29 -0700") References: <20260227164843.2275912-1-tom@tromey.com> <87qzq6t4vy.fsf@tromey.com> X-Attribution: Tom Date: Fri, 27 Feb 2026 12:01:49 -0700 Message-ID: <875x7it3he.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: 1vw35z-00000001ovZ-2FMo X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-122-234.hlrn.qwest.net (bapiya) [97.122.122.234]:53590 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: MS4xfHrAzs9mcpKuq5rY2tVaqy17GTzQNuPrC97zcfu7avjikbcdkByKbMbD4ZTMF4pc32e1tak8OH+1eNYA2CCo7Evl/0zzox5WSGI8AqaZN2KtwRoPal9o 3QQMDOBfBBsc4TgTMr1Iy1AYHLssigVjcwqRC612oIeCP4Cs0HGa7FYL5rZsu9cCgMS9EJGgsHz6Pw6snMWKdSVP66qWdM3j8wE= 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 Tromey writes: >>>>> "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. I answered this backward somehow!? Yeah, if subclasses are at all possible then the other spots should be updated. Tom