From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3346 invoked by alias); 26 Mar 2008 22:40:39 -0000 Received: (qmail 3338 invoked by uid 22791); 26 Mar 2008 22:40:38 -0000 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Mar 2008 22:40:11 +0000 Received: by fg-out-1718.google.com with SMTP id e12so3254572fga.0 for ; Wed, 26 Mar 2008 15:40:08 -0700 (PDT) Received: by 10.82.145.19 with SMTP id s19mr61226bud.27.1206571208019; Wed, 26 Mar 2008 15:40:08 -0700 (PDT) Received: by 10.82.162.12 with HTTP; Wed, 26 Mar 2008 15:40:07 -0700 (PDT) Message-ID: <8f2776cb0803261540j19d9f591k93cdf41233dd67df@mail.gmail.com> Date: Thu, 27 Mar 2008 06:41:00 -0000 From: "Jim Blandy" To: "Tom Tromey" Subject: Re: repo to work on python scripting support Cc: "Thiago Jung Bauermann" , "gdb ml" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1205538908.6643.138.camel@localhost.localdomain> <1206369478.29533.15.camel@localhost.localdomain> <20080325114520.GA21688@caradoc.them.org> <8f2776cb0803251118o316d261erb340d67bb0580967@mail.gmail.com> <20080325183004.GA20107@caradoc.them.org> X-Google-Sender-Auth: 8ca0f74183bbdf51 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00259.txt.bz2 Python decorators seem to be in the latest python, at least: http://docs.python.org/ref/function.html The discussion Tom linked to was back in 2004. Decorators would be perfect for this, I think: @Gdb.interactive (Gdb.Expr, Gdb.Expr) def strcmp (str1, str2): // compare strings Easy squeezy.