From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28036 invoked by alias); 10 Nov 2009 15:06:18 -0000 Received: (qmail 28027 invoked by uid 22791); 10 Nov 2009 15:06:17 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Nov 2009 15:06:12 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAAF67JV029679 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Nov 2009 10:06:07 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAAF66oM028903; Tue, 10 Nov 2009 10:06:07 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id nAAF65sY004750; Tue, 10 Nov 2009 10:06:06 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 75D9937815E; Tue, 10 Nov 2009 08:06:05 -0700 (MST) From: Tom Tromey To: Marcelo Taube Cc: gdb@sourceware.org Subject: Re: Some feedback about the python scripting feature References: <4AF898F3.50908@gmail.com> <4AF8993D.2050507@gmail.com> Reply-To: tromey@redhat.com Date: Tue, 10 Nov 2009 15:38:00 -0000 In-Reply-To: <4AF8993D.2050507@gmail.com> (Marcelo Taube's message of "Tue, 10 Nov 2009 00:35:41 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-11/txt/msg00115.txt.bz2 >>>>> "Marcelo" == Marcelo Taube writes: Marcelo> There are some features missing which would improve it even Marcelo> more, though. Feel free to file bug reports in GDB bugzilla. Marcelo> * *interactive python: *the current python command reads lines using Marcelo> gdb normal input instead of the regular python prompt line, making Marcelo> some nice features of python unavailable like Marcelo> completions-proposals (pressing the tab-key to get the name of a Marcelo> function completed) or auto indentation. Maybe running the regular Marcelo> python prompt line can be an option. You should be able to easily enter the Python repl, though offhand I don't know how. Marcelo> * *regular members instead of dictionaries: *it would be more Marcelo> natural to have members of structs be accessed in their natural Marcelo> way like in c. For example if we have some struct "struct Type { Marcelo> int a; int b;}" and we have a value object in python called Marcelo> 'value', Now to access 'value.a' we have to do 'value["a"]' but Marcelo> that feels preety unnatural, why not just support the syntax Marcelo> 'value.a' ? We chose this approach to avoid conflict with Value's own members, like `type'. Tom