From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31941 invoked by alias); 26 Mar 2008 14:24:28 -0000 Received: (qmail 31931 invoked by uid 22791); 26 Mar 2008 14:24:26 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Mar 2008 14:24:06 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 479F1983AA; Wed, 26 Mar 2008 14:24:04 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 01A2A98140; Wed, 26 Mar 2008 14:24:03 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JeWXr-0004Wb-1m; Wed, 26 Mar 2008 10:24:03 -0400 Date: Wed, 26 Mar 2008 17:58:00 -0000 From: Daniel Jacobowitz To: Paul Koning Cc: jimb@red-bean.com, tromey@redhat.com, bauerman@br.ibm.com, gdb@sourceware.org Subject: Re: repo to work on python scripting support Message-ID: <20080326142402.GA15660@caradoc.them.org> Mail-Followup-To: Paul Koning , jimb@red-bean.com, tromey@redhat.com, bauerman@br.ibm.com, gdb@sourceware.org References: <1206369478.29533.15.camel@localhost.localdomain> <20080325114520.GA21688@caradoc.them.org> <8f2776cb0803251118o316d261erb340d67bb0580967@mail.gmail.com> <18409.18988.613477.542099@pkoning-laptop.equallogic.com> <18409.21257.48822.645806@pkoning-laptop.equallogic.com> <8f2776cb0803251441m169bfcddkb12bc8873bd4cf8f@mail.gmail.com> <18410.23162.503583.519896@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18410.23162.503583.519896@gargle.gargle.HOWL> User-Agent: Mutt/1.5.17 (2007-12-11) 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/msg00239.txt.bz2 On Wed, Mar 26, 2008 at 10:15:22AM -0400, Paul Koning wrote: > The goal of supporting Python scripting should be to provide an > environment that is familiar to Python programmers. No, I don't think so. The goal of supporting Python scripting is to make it easy to implement useful and usable GDB commands in a way accessible to Python programmers. These are functions which will be directly shown to the user. We need _consistency_ in how their arguments are passed; experience has shown that inconsistency is a serious problem. I don't think any sort of polymorphism is going to be necessary or desirable in practice. Don't confuse this with typing. It's just going to say EXPRESSION and if you want to handle strings and ints, that's fine. The "caller" is the human user typing some characters. Can you give me an example of where it would be more useful not to do it this way? Regardless of the details of how we pre-specify arguments. -- Daniel Jacobowitz CodeSourcery