From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21448 invoked by alias); 22 Mar 2009 15:37:09 -0000 Received: (qmail 21440 invoked by uid 22791); 22 Mar 2009 15:37:09 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Mar 2009 15:37:03 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n2MFarPb017064; Sun, 22 Mar 2009 11:36:53 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n2MFaXW2010225; Sun, 22 Mar 2009 11:36:34 -0400 Received: from opsy.redhat.com (vpn-12-42.rdu.redhat.com [10.11.12.42]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n2MFabhT029372; Sun, 22 Mar 2009 11:36:37 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 3C4B3378279; Sun, 22 Mar 2009 09:36:35 -0600 (MDT) To: Thiago Jung Bauermann Cc: Eli Zaretskii , gdb-patches@sourceware.org Subject: Re: [rfc] python API exposing inferior's frame stack. References: <1236706351.11106.17.camel@localhost.localdomain> <1237133466.316.16.camel@localhost.localdomain> <1237160806.8098.8.camel@localhost.localdomain> <1237587320.6897.20.camel@localhost.localdomain> From: Tom Tromey Reply-To: tromey@redhat.com Date: Sun, 22 Mar 2009 16:00:00 -0000 In-Reply-To: <1237587320.6897.20.camel@localhost.localdomain> (Thiago Jung Bauermann's message of "Fri\, 20 Mar 2009 19\:15\:20 -0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00455.txt.bz2 >>>>> "Thiago" == Thiago Jung Bauermann writes: Thiago> +static PyMethodDef frame_object_methods[] = { Thiago> + { "equals", frapy_equal_p, METH_VARARGS, Thiago> + "equals (frame) -> Boolean.\n\ Thiago> +Compare this frame to the given frame." }, I think we should probably use tp_richcompare, rather than an explicit method. Tom